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 @@
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
......
......@@ -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;
......
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment