mirror of https://github.com/AMT-Cheif/drift.git
FIx recent deprecation warnings
This commit is contained in:
parent
ef0cada32e
commit
b1f2ea45d5
|
@ -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)();
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -4,4 +4,5 @@ library moor.sqlite_keywords;
|
|||
|
||||
import 'package:moor/src/deprecated.dart';
|
||||
|
||||
// ignore: deprecated_member_use
|
||||
export 'package:drift/sqlite_keywords.dart';
|
||||
|
|
Loading…
Reference in New Issue