updated readme of each example with a screenshot/gif and more details about the example.

added more comments to code
This commit is contained in:
Nishant Srivastava
2017-08-26 18:08:28 -07:00
parent defc273b1e
commit b526955129
28 changed files with 134 additions and 51 deletions

View File

@ -3,15 +3,27 @@ import 'package:flutter/material.dart';
void main() {
runApp(new MaterialApp(
home: new Scaffold(
// AppBar
appBar: new AppBar(
// AppBar Title
title: new Text("Using Theme"),
),
body: new Container(
child: new Center(
child: new Text("Hello World!", style: new TextStyle(color: Colors.white),),
child: new Text(
"Hello World!",
// Set the text style, text color to white
style: new TextStyle(color: Colors.white),
),
),
decoration: new BoxDecoration(color: Colors.purple)),
// Another way to set the background color
decoration: new BoxDecoration(color: Colors.lightBlueAccent)),
),
// Set the theme's primary color, accent color,
theme: new ThemeData(
primarySwatch: Colors.blue,
accentColor: Colors.lightBlueAccent,
backgroundColor: Colors.blueAccent,
),
theme: new ThemeData(primarySwatch: Colors.deepPurple),
));
}