Flutter & SQFLITE | Add And Edit Page To Insert And Update Rows

Опубликовано: 05 Октябрь 2024
на канале: Unpossible POG
526
2

Using Basic Dart Code To Add & Update Data Using FLUTTER User Interface.
-------------------------------
Code Link:-
https://unpossiblepog.blogspot.com/20...

Download Whole Flutter Project:- https://unpossiblepog.com/projects/da...

Subscribe my Channel:- http://www.youtube.com/user/SanketRoo...

Facebook Page:-   / unpossiblens  

Twitter Account:-   / unpossiblepog  

Blog :- https://unpossiblepog.blogspot.in/
-------------------------------
In last part, we displayed database in table format. In this video, we are going create add & edit page from where we can insert or update data.
We already have table structure ready, we shall add new column for edit button.
And we already have add button floating at the bottom of simulator screen.
I created a blog which contains code and instructions.
We just have to copy-paste it.
From 1st point, copy the code and replace the getDynamicTable function.
It will help to add new EDIT column.
For 2nd point, create a new dart file in LIB folder.
Paste the whole code in it.
Make sure to add correct project name, in my case it is “steps”
3rd point says that you have to import newly created file.
From 4th point, onpressed function of floating button, add the given code.
In 5th point, create a new int variable called ID with default value as 0.
From last point, copy the code, go to database_connector.dart file and paste the code inside the class.
Now let’s run the project.
Peter Parker came twice, so I am going to edit the entry.
Let’s add new entry by clicking on floating button.
So that is it, thanks for watching. Like share and subscribe.