Provider section in faq: builder -> creator

This commit is contained in:
Simon Binder 2020-03-13 11:52:17 +01:00
parent ae7c9df049
commit 4ff3d438f8
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 1 additions and 1 deletions

View File

@ -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(),
),