added drawer
This commit is contained in:
@ -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);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
@ -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: (){
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user