diff --git a/README.md b/README.md index aef0c78f3beda90b044cbc32a6bd4257efffdfb5..d77f20267ef0bb0344cce8284cfe8c168ad5c728 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,13 @@ flutter pub add sqflite flutter pub add path flutter pub add sqflite_common_ffi +flutter pub add sqflite_common_ffi_web +sudo apt-get install libsqlite3-dev +dart run sqflite_common_ffi_web:setup +dart run sqflite_common_ffi_web:setup --force + A new Flutter project. ## Getting Started diff --git a/tetonor/lib/main.dart b/tetonor/lib/main.dart index 843e92745f8f6dad859ab6a39ec44a3620f37711..23cedc315ca80e75c7193f2b8f306186e89db3bd 100644 --- a/tetonor/lib/main.dart +++ b/tetonor/lib/main.dart @@ -51,7 +51,7 @@ class _MyAppState extends State<MyApp> { { databaseFactory = databaseFactoryFfiWeb; } - else if (Platform.isWindows || Platform.isLinux || Platform.isMacOS) + else //if (Platform.isWindows || Platform.isLinux || Platform.isMacOS) { sqfliteFfiInit(); databaseFactory = databaseFactoryFfi; diff --git a/tetonor/lib/selectWidget.dart b/tetonor/lib/selectWidget.dart index 4990e81e67c5d302a858b2d395eae4d724e69de4..6d83719826612bc90df7ab20f1346707aa5f4ee7 100644 --- a/tetonor/lib/selectWidget.dart +++ b/tetonor/lib/selectWidget.dart @@ -35,9 +35,6 @@ class _SelectWidget extends State<SelectWidget> { @override Widget build(BuildContext context) { _loadCategories(); - // if (categories.isEmpty) { - // return Text('No categories'); - // } return DropdownMenu<String>( initialSelection: categories.first, onSelected: (String? value) {