Update example app

This commit is contained in:
Simon Binder 2020-01-29 22:04:16 +01:00
parent d0a969e9cc
commit 2920681ff9
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
4 changed files with 5 additions and 9 deletions

3
.gitignore vendored
View File

@ -7,4 +7,5 @@ lcov.info
pubspec.lock
.dart_tool/
benchmark_results.json
benchmark_results.json
.flutter-plugins-dependencies

View File

@ -15,12 +15,7 @@ class MyApp extends StatelessWidget {
title: 'moor Demo',
theme: ThemeData(
primarySwatch: Colors.orange,
// use the good-looking updated material text style
typography: Typography(
englishLike: Typography.englishLike2018,
dense: Typography.dense2018,
tall: Typography.tall2018,
),
typography: Typography.material2018(),
),
home: HomeScreen(),
),

View File

@ -22,7 +22,7 @@ class _AddCategoryDialogState extends State<AddCategoryDialog> {
padding: const EdgeInsets.all(8),
child: Text(
'Add a category',
style: Theme.of(context).textTheme.title,
style: Theme.of(context).textTheme.headline6,
),
),
TextField(

View File

@ -15,7 +15,7 @@ class CategoriesDrawer extends StatelessWidget {
'Todo-List Demo with moor',
style: Theme.of(context)
.textTheme
.subhead
.subtitle1
.copyWith(color: Colors.white),
),
decoration: BoxDecoration(color: Colors.orange),