This commit is contained in:
Mohamed Nouffer
2022-07-20 20:55:54 +05:30
parent 5283b5052e
commit 25410a7ebd
8 changed files with 85 additions and 23 deletions

View File

@ -25,27 +25,42 @@ class IndexPage extends GetView<IndexController> {
return Scaffold(
drawer: const DrawerPage(),
appBar: AppBar(
// leading: IconButton(
// icon: Icon(Icons.arrow_back_ios),
// onPressed: (){
// indexController.switchPage(AppPages.TRAVEL);
// },
// ),
leading: IconButton(
icon: Icon(Icons.arrow_back_ios),
onPressed: (){
indexController.switchPage(AppPages.TRAVEL);
},
),
//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.checkedin} ---- :::::");
};
});
},
),
InkWell(
onTap: (){
Get.toNamed(AppPages.SEARCH);
},
child: Container(
height: 32,
width: 75,
decoration: BoxDecoration(
color: Colors.blue,
borderRadius: BorderRadius.circular(25),
),
child: const Center(child: Icon(Icons.search),),
),
),
// 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,),
],
),