Be explicit about the theme in the starter app

This gives developers a breadcrumb they can follow to customize the
theme of their app. Previously, some customers were trying to set a
theme by manually configuring the colors of all their widgets.

Fixes #2980
This commit is contained in:
Adam Barth
2016-03-30 23:05:48 -07:00
parent db9a92e59f
commit d645bc74d7

View File

@@ -12,6 +12,9 @@ void main() {
runApp(
new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(
primarySwatch: Colors.blue
),
routes: <String, WidgetBuilder>{
'/': (BuildContext context) => new FlutterDemo()
}