update for chech in

This commit is contained in:
Mohamed Nouffer
2022-07-14 23:10:24 +05:30
parent 264cd828f4
commit 42accf9f3a
10 changed files with 532 additions and 311 deletions

View File

@ -34,18 +34,18 @@ class IndexPage extends GetView<IndexController> {
//automaticallyImplyLeading: false,
title: Text("Add locations"),
actions: [
// RaisedButton(
// child: Text("db"),
// onPressed: (){
// DatabaseHelper db = DatabaseHelper.instance;
// db.getDestinations().then((value){
// print("-------- lendth in db ${value.length} ---- :::::");
// for(Destination d in value){
// print("-------- values in db are ${d.toString()} ---- :::::");
// };
// });
// },
// ),
RaisedButton(
child: Text("db"),
onPressed: (){
DatabaseHelper db = DatabaseHelper.instance;
db.getDestinations().then((value){
print("-------- lendth in db ${value.length} ---- :::::");
for(Destination d in value){
print("-------- values in db are ${d.checkedin} ---- :::::");
};
});
},
),
CatWidget(indexController: indexController,),
],
),
@ -65,7 +65,6 @@ class IndexPage extends GetView<IndexController> {
onPressed: (){
indexController.toggleMode();
if(indexController.currentCat.isNotEmpty){
print("###############");
print(indexController.currentCat[0].toString());
}