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(),
),
@ -110,4 +110,4 @@ Firebase is a very good option when
Yes! Moor stores its data in a sqlite3 database file that can be extracted from the device and inspected locally.
To inspect a database on a device directly, you can use the [`moor_db_viewer`](https://pub.dev/packages/moor_db_viewer)
package by Koen Van Looveren.
package by Koen Van Looveren.