Update faq.md

provider usage typo
This commit is contained in:
remove 2020-07-18 10:38:47 +08:00 committed by GitHub
parent ba60bb9962
commit 220c9b48ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ provider that manages the database instance:
void main() {
runApp(
Provider<MyDatabase>(
creator: (context) => MyDatabase(),
create: (context) => MyDatabase(),
child: MyFlutterApp(),
dispose: (context, db) => db.close(),
),