chore: update ios config to use location

This commit is contained in:
anhtunz
2025-04-14 09:48:29 +07:00
parent 30ee4540ba
commit 345c554519
4 changed files with 12 additions and 50 deletions

View File

@@ -234,9 +234,9 @@ class _MapScreenState extends State<MapScreen> with WidgetsBindingObserver {
if (hasStateOne) {
return flameIcon; // flameIcon
} else if (hasOtherState) {
return normalIcon; // normalIcon
return offlineIcon; // normalIcon
} else {
return offlineIcon; // offlineIcon
return normalIcon; // offlineIcon
}
}
@@ -274,16 +274,13 @@ class _MapScreenState extends State<MapScreen> with WidgetsBindingObserver {
if (response != "") {
final data = jsonDecode(response);
List<dynamic> result = data['items'];
if(result.isNotEmpty){
if (result.isNotEmpty) {
devices.clear();
final devicesList = Device.fromJsonDynamicList(result);
for (var device in devicesList) {
devices.add(device);
}
}else{
}
} else {}
}
}

View File

@@ -163,6 +163,7 @@ onTapMarker(
style: const ButtonStyle(
backgroundColor: WidgetStatePropertyAll(Colors.red),
foregroundColor: WidgetStatePropertyAll(Colors.white),
iconColor: WidgetStatePropertyAll(Colors.white),
),
icon: IconConstants.instance
.getMaterialIcon(Icons.fire_truck_outlined),