re factor rog
This commit is contained in:
@ -6,6 +6,6 @@ class DestinationBinding extends Bindings {
|
||||
@override
|
||||
void dependencies() {
|
||||
Get.put<DestinationController>(DestinationController());
|
||||
restoreGame();
|
||||
//restoreGame();
|
||||
}
|
||||
}
|
||||
|
||||
@ -650,7 +650,7 @@ class DestinationController extends GetxController {
|
||||
}
|
||||
isInRog.value = true;
|
||||
|
||||
saveGameState();
|
||||
//saveGameState();
|
||||
}
|
||||
|
||||
Future<void> cancelBuyPoint(Destination destination) async {
|
||||
|
||||
@ -155,7 +155,7 @@ class DestinationMapPage extends StatelessWidget {
|
||||
interactiveFlags: InteractiveFlag.pinchZoom | InteractiveFlag.drag,
|
||||
),
|
||||
children: [
|
||||
const BaseLayer(),
|
||||
//const BaseLayer(),
|
||||
Obx(
|
||||
() => indexController.routePointLenght > 0
|
||||
? PolylineLayer(
|
||||
|
||||
@ -123,7 +123,7 @@ class _GpsPageState extends State<GpsPage> {
|
||||
onTap: (tapPos, cord) {}, // Hide popup when the map is tapped.
|
||||
),
|
||||
children: [
|
||||
const BaseLayer(),
|
||||
//const BaseLayer(),
|
||||
MarkerLayer(
|
||||
markers: gpsData.map((i) {
|
||||
return Marker(
|
||||
|
||||
@ -116,8 +116,8 @@ class IndexController extends GetxController {
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
_connectivitySubscription =
|
||||
_connectivity.onConnectivityChanged.listen(_updateConnectionStatus);
|
||||
// _connectivitySubscription =
|
||||
// _connectivity.onConnectivityChanged.listen(_updateConnectionStatus);
|
||||
super.onInit();
|
||||
}
|
||||
|
||||
@ -133,16 +133,16 @@ class IndexController extends GetxController {
|
||||
}
|
||||
|
||||
Future<void> initConnectivity() async {
|
||||
late ConnectivityResult result;
|
||||
// Platform messages may fail, so we use a try/catch PlatformException.
|
||||
try {
|
||||
result = await _connectivity.checkConnectivity();
|
||||
} on PlatformException catch (_) {
|
||||
//print('Couldn\'t check connectivity status --- $e');
|
||||
return;
|
||||
}
|
||||
// late ConnectivityResult result;
|
||||
// // Platform messages may fail, so we use a try/catch PlatformException.
|
||||
// try {
|
||||
// //result = await _connectivity.checkConnectivity();
|
||||
// } on PlatformException catch (_) {
|
||||
// //print('Couldn\'t check connectivity status --- $e');
|
||||
// return;
|
||||
// }
|
||||
|
||||
return _updateConnectionStatus(result);
|
||||
// return _updateConnectionStatus(result);
|
||||
}
|
||||
|
||||
LatLngBounds boundsFromLatLngList(List<LatLng> list) {
|
||||
|
||||
Reference in New Issue
Block a user