From d645bc74d7eadbc873985272c97de02d8bb2cbf3 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Wed, 30 Mar 2016 23:05:48 -0700 Subject: [PATCH] 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 --- packages/flutter_tools/templates/create/lib/main.dart.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/flutter_tools/templates/create/lib/main.dart.tmpl b/packages/flutter_tools/templates/create/lib/main.dart.tmpl index 476f689fa8..3f1cd4ef5f 100644 --- a/packages/flutter_tools/templates/create/lib/main.dart.tmpl +++ b/packages/flutter_tools/templates/create/lib/main.dart.tmpl @@ -12,6 +12,9 @@ void main() { runApp( new MaterialApp( title: 'Flutter Demo', + theme: new ThemeData( + primarySwatch: Colors.blue + ), routes: { '/': (BuildContext context) => new FlutterDemo() }