added drawer
This commit is contained in:
@ -55,7 +55,7 @@ class DrawerPage extends StatelessWidget {
|
||||
title: Text("logout".tr),
|
||||
onTap: (){
|
||||
indexController.logout();
|
||||
Get.toNamed(AppPages.TRAVEL);
|
||||
Get.toNamed(AppPages.LOGIN);
|
||||
},
|
||||
)
|
||||
),
|
||||
|
||||
@ -27,9 +27,9 @@ class IndexPage extends GetView<IndexController> {
|
||||
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: (){
|
||||
|
||||
@ -429,8 +429,10 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
||||
),
|
||||
ElevatedButton(
|
||||
onPressed:() async {
|
||||
print("---- go to ----");
|
||||
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(
|
||||
lat: position.latitude,
|
||||
lon: position.longitude
|
||||
|
||||
Reference in New Issue
Block a user