googel map routs to near gasstation
This commit is contained in:
@@ -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> {
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user