googel map routs to near gasstation

This commit is contained in:
2026-10-09 19:20:44 +02:00
parent 141999d61c
commit 832747fce6
9 changed files with 58427 additions and 57178 deletions
+6 -8
View File
@@ -62,7 +62,7 @@ class GasstationsPage extends GetView<GasstationsController> {
],
),
);
}
}
// Anzeige bei Fehler/Unerreichbarkeit des E-Control Services
else if (staCtrl.errorMessage.isNotEmpty) {
return Center(
@@ -83,11 +83,7 @@ class GasstationsPage extends GetView<GasstationsController> {
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
Icons.cloud_off,
size: 64,
color: Colors.red[400],
),
Icon(Icons.cloud_off, size: 64, color: Colors.red[400]),
const SizedBox(height: 16),
Text(
'Service nicht erreichbar',
@@ -120,7 +116,7 @@ class GasstationsPage extends GetView<GasstationsController> {
),
),
);
}
}
// Anzeige, wenn keine Tankstellen gefunden wurden
else if (staCtrl.eControlData.isEmpty) {
return Center(
@@ -220,6 +216,8 @@ class GasstationsPage extends GetView<GasstationsController> {
return GasStationCard(
station: staCtrl.eControlData[index],
index: index,
originLatitude: staCtrl.currentLatitude!,
originLongitude: staCtrl.currentLongitude!,
);
},
),
@@ -232,4 +230,4 @@ class GasstationsPage extends GetView<GasstationsController> {
),
);
}
}
}