'How can I create a database in flutter to insert List items when tapped on?
Hello I have a class of Fish and within this class I create a list of items. Now I'm trying to create a database using Sqflite where if the user tap on an item, the selected item will be added to the database. And finally I want to display the selected items to the user. Please Can you guys save me???
code sample: class Fish { List listOfFish = [ "A l'amiral", "Ackee and saltfish", "Acqua pazza", "Agujjim", "Amplang", "Arsik", "Asam pedas", "Aseed", // B "Bacalaito", "Bacalhau a Bras", "Bacalhau a Gomes de Sa", ]; }
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
