Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa2caa7

Browse files
authored
Tweaks to the template for P4. (flutter#6635)
1 parent eb98d71 commit fa2caa7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/flutter_tools/templates/create/lib/main.dart.tmpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class MyApp extends StatelessWidget {
2929
// reset back to zero -- the application is not restarted.
3030
primarySwatch: Colors.blue,
3131
),
32-
home: new MyHomePage(title: 'Flutter Demo'),
32+
home: new MyHomePage(title: 'Flutter Demo Home Page'),
3333
);
3434
}
3535
}
@@ -71,6 +71,10 @@ class _MyHomePageState extends State<MyHomePage> {
7171
Widget build(BuildContext context) {
7272
// This method is rerun every time setState is called, for instance
7373
// as done by the _incrementCounter method above.
74+
// The Flutter framework has been optimized to make rerunning
75+
// build methods fast, so that you can just rebuild anything that
76+
// needs updating rather than having to individually change
77+
// instances of widgets.
7478
return new Scaffold(
7579
appBar: new AppBar(
7680
// Here we take the value from the MyHomePage object that

0 commit comments

Comments
 (0)