From c0847663c5e25e9e5cf39e7b35c5110583e98645 Mon Sep 17 00:00:00 2001 From: "benjamin.anthonio" <benjamin.anthonioz@etu.hesge.ch> Date: Wed, 26 Jun 2024 14:18:02 +0200 Subject: [PATCH] transfer --- README.md | 5 +++++ tetonor/lib/main.dart | 2 +- tetonor/lib/selectWidget.dart | 3 --- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index aef0c78..d77f202 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 843e927..23cedc3 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 4990e81..6d83719 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) { -- GitLab