Update dependencies for app example

This commit is contained in:
Simon Binder 2023-03-05 22:15:16 +01:00
parent 4db8f19a43
commit e91df496c8
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
3 changed files with 9 additions and 9 deletions

View File

@ -16,6 +16,7 @@ class CategoriesDrawer extends ConsumerWidget {
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
DrawerHeader(
decoration: const BoxDecoration(color: Colors.orange),
child: Text(
'Todo-List Demo with drift',
style: Theme.of(context)
@ -23,7 +24,6 @@ class CategoriesDrawer extends ConsumerWidget {
.titleMedium
?.copyWith(color: Colors.white),
),
decoration: const BoxDecoration(color: Colors.orange),
),
Flexible(
child: StreamBuilder<List<CategoryWithCount>>(
@ -124,13 +124,13 @@ class _CategoryDrawerEntry extends ConsumerWidget {
},
),
TextButton(
child: const Text('Delete'),
style: ButtonStyle(
foregroundColor: MaterialStateProperty.all(Colors.red),
),
onPressed: () {
Navigator.pop(context, true);
},
child: const Text('Delete'),
),
],
);

View File

@ -13,7 +13,7 @@ class TodoEditDialog extends ConsumerStatefulWidget {
const TodoEditDialog({Key? key, required this.entry}) : super(key: key);
@override
_TodoEditDialogState createState() => _TodoEditDialogState();
ConsumerState<TodoEditDialog> createState() => _TodoEditDialogState();
}
class _TodoEditDialogState extends ConsumerState<TodoEditDialog> {
@ -82,7 +82,6 @@ class _TodoEditDialogState extends ConsumerState<TodoEditDialog> {
),
actions: [
TextButton(
child: const Text('Cancel'),
style: ButtonStyle(
textStyle: MaterialStateProperty.all(
const TextStyle(color: Colors.black),
@ -91,6 +90,7 @@ class _TodoEditDialogState extends ConsumerState<TodoEditDialog> {
onPressed: () {
Navigator.pop(context);
},
child: const Text('Cancel'),
),
TextButton(
child: const Text('Save'),

View File

@ -13,20 +13,20 @@ dependencies:
drift:
file_picker: ^5.2.5
flutter_colorpicker: ^1.0.3
flutter_riverpod: ^1.0.3
go_router: ^3.0.6
intl: ^0.17.0
flutter_riverpod: ^2.3.0
go_router: ^6.2.0
intl: ^0.18.0
http: ^0.13.4 # used to load sqlite3 wasm files on the web
sqlite3_flutter_libs: ^0.5.5
sqlite3: ^1.7.0
path_provider: ^2.0.9
path: ^1.8.0
riverpod: ^1.0.3
riverpod: ^2.3.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^1.0.0
flutter_lints: ^2.0.1
build_runner: ^2.1.8
# We use this to compile the shared web worker for the web database. This dependency
# isn't required for most apps. You only need it if you want to target the web, use