implemented using_theme example

This commit is contained in:
Nishant Srivastava
2017-08-09 01:15:28 -07:00
parent 7473fdeeed
commit 138cf3f84b
49 changed files with 1345 additions and 0 deletions

17
using_theme/lib/main.dart Normal file
View File

@ -0,0 +1,17 @@
import 'package:flutter/material.dart';
void main() {
runApp(new MaterialApp(
home: new Scaffold(
appBar: new AppBar(
title: new Text("Using Theme"),
),
body: new Container(
child: new Center(
child: new Text("Hello World!", style: new TextStyle(color: Colors.white),),
),
decoration: new BoxDecoration(color: Colors.purple)),
),
theme: new ThemeData(primarySwatch: Colors.deepPurple),
));
}