mirror of https://github.com/AMT-Cheif/drift.git
Provider section in faq: builder -> creator
This commit is contained in:
parent
ae7c9df049
commit
4ff3d438f8
|
@ -27,7 +27,7 @@ provider that manages the database instance:
|
|||
void main() {
|
||||
runApp(
|
||||
Provider<MyDatabase>(
|
||||
builder: (context) => MyDatabase(),
|
||||
creator: (context) => MyDatabase(),
|
||||
child: MyFlutterApp(),
|
||||
dispose: (context, db) => db.close(),
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue