From b3a9e35f763cfa4859a3cbf64d5c0fd3e4379d5d Mon Sep 17 00:00:00 2001 From: Mohamed Nouffer Date: Tue, 11 Jul 2023 12:11:41 +0530 Subject: [PATCH] added drawer --- lib/pages/drawer/drawer_page.dart | 2 +- lib/pages/index/index_page.dart | 4 ++-- lib/widgets/bottom_sheet_new.dart | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/pages/drawer/drawer_page.dart b/lib/pages/drawer/drawer_page.dart index c782f38..cec7469 100644 --- a/lib/pages/drawer/drawer_page.dart +++ b/lib/pages/drawer/drawer_page.dart @@ -55,7 +55,7 @@ class DrawerPage extends StatelessWidget { title: Text("logout".tr), onTap: (){ indexController.logout(); - Get.toNamed(AppPages.TRAVEL); + Get.toNamed(AppPages.LOGIN); }, ) ), diff --git a/lib/pages/index/index_page.dart b/lib/pages/index/index_page.dart index c8aa073..4c50194 100644 --- a/lib/pages/index/index_page.dart +++ b/lib/pages/index/index_page.dart @@ -27,9 +27,9 @@ class IndexPage extends GetView { return WillPopScope( onWillPop: () async => false, child: Scaffold( - //drawer: const DrawerPage(), + drawer: DrawerPage(), appBar: AppBar( - automaticallyImplyLeading: false, + // automaticallyImplyLeading: false, // leading: IconButton( // icon: Icon(Icons.arrow_back_ios), // onPressed: (){ diff --git a/lib/widgets/bottom_sheet_new.dart b/lib/widgets/bottom_sheet_new.dart index 782acd4..588e7e0 100644 --- a/lib/widgets/bottom_sheet_new.dart +++ b/lib/widgets/bottom_sheet_new.dart @@ -429,8 +429,10 @@ class BottomSheetNew extends GetView { ), ElevatedButton( onPressed:() async { + print("---- go to ----"); GeoJsonFeature mp = indexController.currentFeature[0] as GeoJsonFeature; - Position position = await Geolocator.getCurrentPosition(desiredAccuracy: LocationAccuracy.high); + Position position = await Geolocator.getCurrentPosition(desiredAccuracy: LocationAccuracy.best); + print("------- position -------- ${position}"); Destination ds = Destination( lat: position.latitude, lon: position.longitude