From cfdb2f5cd23ab1e36b4c8b1d05966e29ec9d7686 Mon Sep 17 00:00:00 2001 From: Abdullah Hilson Date: Mon, 13 Apr 2020 13:46:11 +0100 Subject: [PATCH] doc: update example to include missing imports `dart:io` is necessary for `File` `moor.dart` is necessary for `LazyDatabase` --- docs/content/en/docs/Getting started/_index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/content/en/docs/Getting started/_index.md b/docs/content/en/docs/Getting started/_index.md index 5b0eb4e5..9691f7e5 100644 --- a/docs/content/en/docs/Getting started/_index.md +++ b/docs/content/en/docs/Getting started/_index.md @@ -92,6 +92,8 @@ follows: import 'package:moor_ffi/moor_ffi.dart'; import 'package:path_provider/path_provider.dart'; import 'package:path/path.dart' as p; +import 'package:moor/moor.dart'; +import 'dart:io'; LazyDatabase _openConnection() { // the LazyDatabase util lets us find the right location for the file async.