re factor rog

This commit is contained in:
2024-04-01 09:26:56 +05:30
parent dd36ab8399
commit edbf52825b
54 changed files with 2597 additions and 435 deletions

View File

@ -6,6 +6,6 @@ class DestinationBinding extends Bindings {
@override
void dependencies() {
Get.put<DestinationController>(DestinationController());
restoreGame();
//restoreGame();
}
}

View File

@ -650,7 +650,7 @@ class DestinationController extends GetxController {
}
isInRog.value = true;
saveGameState();
//saveGameState();
}
Future<void> cancelBuyPoint(Destination destination) async {

View File

@ -155,7 +155,7 @@ class DestinationMapPage extends StatelessWidget {
interactiveFlags: InteractiveFlag.pinchZoom | InteractiveFlag.drag,
),
children: [
const BaseLayer(),
//const BaseLayer(),
Obx(
() => indexController.routePointLenght > 0
? PolylineLayer(

View File

@ -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(

View File

@ -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) {