From 220c9b48baeb5d3dc81251d985e333604d485402 Mon Sep 17 00:00:00 2001 From: remove Date: Sat, 18 Jul 2020 10:38:47 +0800 Subject: [PATCH] Update faq.md provider usage typo --- docs/content/en/docs/faq.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/en/docs/faq.md b/docs/content/en/docs/faq.md index 55ed3bbd..9f65657a 100644 --- a/docs/content/en/docs/faq.md +++ b/docs/content/en/docs/faq.md @@ -27,7 +27,7 @@ provider that manages the database instance: void main() { runApp( Provider( - 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. \ No newline at end of file +package by Koen Van Looveren.