FIx recent deprecation warnings

This commit is contained in:
Simon Binder 2023-01-26 16:56:16 +01:00
parent ef0cada32e
commit b1f2ea45d5
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
3 changed files with 3 additions and 1 deletions

View File

@ -37,6 +37,7 @@ class Users extends Table with AutoIncrement {
BlobColumn get profilePicture => blob()();
DateTimeColumn get creationTime => dateTime()
// ignore: recursive_getters
.check(creationTime.isBiggerThan(Constant(DateTime.utc(1950))))
.withDefault(currentDateAndTime)();
}

View File

@ -20,7 +20,7 @@ class CategoriesDrawer extends ConsumerWidget {
'Todo-List Demo with drift',
style: Theme.of(context)
.textTheme
.subtitle1
.titleMedium
?.copyWith(color: Colors.white),
),
decoration: const BoxDecoration(color: Colors.orange),

View File

@ -4,4 +4,5 @@ library moor.sqlite_keywords;
import 'package:moor/src/deprecated.dart';
// ignore: deprecated_member_use
export 'package:drift/sqlite_keywords.dart';