skip to Main Content

Flutter, insert textfield into sqflite

I'm trying to fill in sqflite tables using textfields, but it creates a separate table instead of filling in the various fields class _InputBarState extends State<InputBar> { final _controller = TextEditingController(); final _controller1 = TextEditingController(); final _controller2 = TextEditingController(); final…

VIEW QUESTION

Flutter – Why does aliasing a package cause Android Studio to not be able to find the same function that it could find when the package was unaliased?

I took this function from https://suragch.medium.com/simple-sqflite-database-example-in-flutter-e56a5aaa3f91. This works: import 'package:sqflite/sqflite.dart'; Future<int> localDBQueryRowCount({required sqf.Database db, required String table}) async { final results = await db.rawQuery('SELECT COUNT(*) FROM $table'); return Sqflite.firstIntValue(results) ?? 0; } This doesn't work: import 'package:sqflite/sqflite.dart' as sqf; Future<int>…

VIEW QUESTION

Can't reorder a list in Flutter

I'm trying to create a list of ingredients that can be re-ordered using Flutter/Dart. I'm using ReorderableListView and ReorderableDragStartListener. I can drag the items around, but they won't re-ordered. They just snapped back to their original places. Any help? The…

VIEW QUESTION
Back To Top
Search