mirror of https://github.com/AMT-Cheif/drift.git
commit
54cf553e15
|
@ -27,7 +27,7 @@ provider that manages the database instance:
|
||||||
void main() {
|
void main() {
|
||||||
runApp(
|
runApp(
|
||||||
Provider<MyDatabase>(
|
Provider<MyDatabase>(
|
||||||
creator: (context) => MyDatabase(),
|
create: (context) => MyDatabase(),
|
||||||
child: MyFlutterApp(),
|
child: MyFlutterApp(),
|
||||||
dispose: (context, db) => db.close(),
|
dispose: (context, db) => db.close(),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue