Skip to content

Commit

Permalink
main.dart: changes in latest flutter
Browse files Browse the repository at this point in the history
  • Loading branch information
turn-a-round committed May 10, 2020
1 parent 8a0a0f4 commit bcf365f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sprightly/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ class MyApp extends StatelessWidget {
// Notice that the counter didn't reset back to zero; the application
// is not restarted.
primarySwatch: Colors.blue,
// This makes the visual density adapt to the platform that you run
// the app on. For desktop platforms, the controls will be smaller and
// closer together (more dense) than on mobile platforms.
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
Expand Down Expand Up @@ -96,7 +100,7 @@ class _MyHomePageState extends State<MyHomePage> {
),
Text(
'$_counter',
style: Theme.of(context).textTheme.display1,
style: Theme.of(context).textTheme.headline4,
),
],
),
Expand Down

0 comments on commit bcf365f

Please sign in to comment.