added drawer

This commit is contained in:
Mohamed Nouffer
2023-07-11 12:11:41 +05:30
parent 0c0234ad3c
commit b3a9e35f76
3 changed files with 6 additions and 4 deletions

View File

@ -55,7 +55,7 @@ class DrawerPage extends StatelessWidget {
title: Text("logout".tr), title: Text("logout".tr),
onTap: (){ onTap: (){
indexController.logout(); indexController.logout();
Get.toNamed(AppPages.TRAVEL); Get.toNamed(AppPages.LOGIN);
}, },
) )
), ),

View File

@ -27,9 +27,9 @@ class IndexPage extends GetView<IndexController> {
return WillPopScope( return WillPopScope(
onWillPop: () async => false, onWillPop: () async => false,
child: Scaffold( child: Scaffold(
//drawer: const DrawerPage(), drawer: DrawerPage(),
appBar: AppBar( appBar: AppBar(
automaticallyImplyLeading: false, // automaticallyImplyLeading: false,
// leading: IconButton( // leading: IconButton(
// icon: Icon(Icons.arrow_back_ios), // icon: Icon(Icons.arrow_back_ios),
// onPressed: (){ // onPressed: (){

View File

@ -429,8 +429,10 @@ class BottomSheetNew extends GetView<BottomSheetController> {
), ),
ElevatedButton( ElevatedButton(
onPressed:() async { onPressed:() async {
print("---- go to ----");
GeoJsonFeature<GeoJsonMultiPoint> mp = indexController.currentFeature[0] as GeoJsonFeature<GeoJsonMultiPoint>; GeoJsonFeature<GeoJsonMultiPoint> mp = indexController.currentFeature[0] as GeoJsonFeature<GeoJsonMultiPoint>;
Position position = await Geolocator.getCurrentPosition(desiredAccuracy: LocationAccuracy.high); Position position = await Geolocator.getCurrentPosition(desiredAccuracy: LocationAccuracy.best);
print("------- position -------- ${position}");
Destination ds = Destination( Destination ds = Destination(
lat: position.latitude, lat: position.latitude,
lon: position.longitude lon: position.longitude