Skip to content
Snippets Groups Projects
Commit c0847663 authored by benjamin.anthonio's avatar benjamin.anthonio
Browse files

transfer

parent 9b5c1b1d
No related branches found
No related tags found
No related merge requests found
...@@ -5,8 +5,13 @@ ...@@ -5,8 +5,13 @@
flutter pub add sqflite flutter pub add sqflite
flutter pub add path flutter pub add path
flutter pub add sqflite_common_ffi 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. A new Flutter project.
## Getting Started ## Getting Started
......
...@@ -51,7 +51,7 @@ class _MyAppState extends State<MyApp> { ...@@ -51,7 +51,7 @@ class _MyAppState extends State<MyApp> {
{ {
databaseFactory = databaseFactoryFfiWeb; databaseFactory = databaseFactoryFfiWeb;
} }
else if (Platform.isWindows || Platform.isLinux || Platform.isMacOS) else //if (Platform.isWindows || Platform.isLinux || Platform.isMacOS)
{ {
sqfliteFfiInit(); sqfliteFfiInit();
databaseFactory = databaseFactoryFfi; databaseFactory = databaseFactoryFfi;
......
...@@ -35,9 +35,6 @@ class _SelectWidget extends State<SelectWidget> { ...@@ -35,9 +35,6 @@ class _SelectWidget extends State<SelectWidget> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
_loadCategories(); _loadCategories();
// if (categories.isEmpty) {
// return Text('No categories');
// }
return DropdownMenu<String>( return DropdownMenu<String>(
initialSelection: categories.first, initialSelection: categories.first,
onSelected: (String? value) { onSelected: (String? value) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment