reverted
This commit is contained in:
@ -109,7 +109,7 @@ class IndexController extends GetxController {
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
rogMode.value = 0;
|
rogMode.value = 1;
|
||||||
Get.toNamed(AppPages.INDEX);
|
Get.toNamed(AppPages.INDEX);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -268,6 +268,7 @@ class IndexController extends GetxController {
|
|||||||
} else {
|
} else {
|
||||||
rogMode.value = 1;
|
rogMode.value = 1;
|
||||||
}
|
}
|
||||||
|
print('--- c rog mode --- ${rogMode.value}');
|
||||||
Get.toNamed(AppPages.INDEX);
|
Get.toNamed(AppPages.INDEX);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -174,7 +174,7 @@ class LocationService {
|
|||||||
'$serverUrl/api/inbound?ln1=$lon1&la1=$lat1&ln2=$lon2&la2=$lat2&ln3=$lon3&la3=$lat3&ln4=$lon4&la4=$lat4';
|
'$serverUrl/api/inbound?ln1=$lon1&la1=$lat1&ln2=$lon2&la2=$lat2&ln3=$lon3&la3=$lat3&ln4=$lon4&la4=$lat4';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//print('++++++++$url');
|
print('++++++++$url');
|
||||||
final response = await http.get(
|
final response = await http.get(
|
||||||
Uri.parse(url),
|
Uri.parse(url),
|
||||||
headers: <String, String>{
|
headers: <String, String>{
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:ffi';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:geojson/geojson.dart';
|
import 'package:geojson/geojson.dart';
|
||||||
import 'package:geolocator/geolocator.dart';
|
import 'package:geolocator/geolocator.dart';
|
||||||
@ -105,7 +107,8 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
destinationController.skipGps = true;
|
destinationController.skipGps = true;
|
||||||
//print('---- rog_mode ----- ${indexController.rog_mode} -----');
|
// print('--- c use --- ${indexController.currentUser[0].values}');
|
||||||
|
// print('---- rog_mode ----- ${indexController.rogMode.value} -----');
|
||||||
return indexController.rogMode.value == 0
|
return indexController.rogMode.value == 0
|
||||||
? detailsSheet(context)
|
? detailsSheet(context)
|
||||||
: destinationSheet(context);
|
: destinationSheet(context);
|
||||||
@ -403,8 +406,9 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
|||||||
child: Container(
|
child: Container(
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Obx(() => Text(
|
child: Obx(() => Text(
|
||||||
indexController
|
"${TextUtils.getDisplayTextFeture(indexController.currentFeature[0])} : ${indexController.currentFeature[0].properties!["location_name"]}",
|
||||||
.currentFeature[0].properties!["location_name"],
|
// indexController
|
||||||
|
// .currentFeature[0].properties!["location_name"],
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 15.0,
|
fontSize: 15.0,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
|
|||||||
Reference in New Issue
Block a user