Bad state: databaseFactory not initialized
databaseFactory is only initialized when using sqflite. When using `sqflite_common_ffi`
You must call `databaseFactory = databaseFactoryFfi;` before using global openDatabase API
#0 databaseFactory.<anonymous closure> (package:sqflite_common/src/sqflite_database_factory.dart:29:7)
#1 databaseFactory (package:sqflite_common/src/sqflite_database_factory.dart:33:6)
#2 getDatabasesPath (package:sqflite_common/sqflite.dart:105:38)
#3 LocalDatabase.getLocalDatabase (package:smooth_app/database/local_database.dart:62:33)
#4 _init1 (package:smooth_app/main.dart:137:40)
<asynchronous suspension>
#5 _SmoothAppState._init2 (package:smooth_app/main.dart:182:5)
<asynchronous suspension>
#6 _FutureBuilderState._subscribe.<anonymous closure> (package:flutter/src/widgets/async.dart:624:31)
<asynchronous suspension>
Error message:
Part of
3918