Flutter Tutorial - SQL Database Storage Using Sqlite & Sqflite CRUD | Android & iOS

Publié le: 02 décembre 2022
sur la chaîne: CODING IS LIFE
338
4

#flutter #fluttertutorialforbeginners #fluttertutorials #codingislife #getx #sqlite




In this tutorial, we shall learn basic SQLite operations with the help of a complete Flutter Application.


In Insert Screen, we shall take car name and number of miles it has gone through TextField widgets. Then when you click on the Insert button, we shall prepare the Car object through _insert() method of main() and call insert() method of Database Helper.

In View Screen, there a Refresh button. When you click on it, it queries all the rows and displays them in a ListView.

In Query Screen, there is a TextField to get the name of the car from user. We have attached onChanged() method, so that, when user starts typing, it dynamically queries the table and shows the rows below the button in a ListView.

In Update Screen, we have three TextFields for reading id, name and miles from user. When user enters these fields and click update button, we shall update name and miles for the id provided. You can go the View tab, press on Refresh button to see if the update happened.

In Delete Screen, we have a TextField to read id. When user provides the id and presses Delete button, the row shall be deleted, based on id, if present in the database table.


Sur cette page du site, vous pouvez voir la vidéo en ligne Flutter Tutorial - SQL Database Storage Using Sqlite & Sqflite CRUD | Android & iOS durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur CODING IS LIFE 02 décembre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 338 fois et il a aimé 4 téléspectateurs. Bon visionnage!