Umbau auf directus API Rest Service
This commit is contained in:
@@ -54,8 +54,8 @@ class DetailPage extends GetView<DetailController> {
|
||||
DetailStatWidget(
|
||||
icon: Icons.location_on,
|
||||
label: 'Standort',
|
||||
value: detailCtrl.tank.szLocation.isNotEmpty
|
||||
? detailCtrl.tank.szLocation
|
||||
value: detailCtrl.tank.standort!.isNotEmpty
|
||||
? detailCtrl.tank.standort!
|
||||
: 'Nicht angegeben',
|
||||
iconColor: Colors.red,
|
||||
),
|
||||
@@ -63,7 +63,9 @@ class DetailPage extends GetView<DetailController> {
|
||||
DetailStatWidget(
|
||||
icon: Icons.calendar_today,
|
||||
label: 'Datum',
|
||||
value: detailCtrl.tank.szDate,
|
||||
value: detailCtrl.tank.tankDate!.isNotEmpty
|
||||
? detailCtrl.tank.tankDate!
|
||||
: 'Nicht angegeben',
|
||||
iconColor: Colors.blueGrey,
|
||||
),
|
||||
],
|
||||
@@ -78,7 +80,7 @@ class DetailPage extends GetView<DetailController> {
|
||||
DetailStatWidget(
|
||||
icon: Icons.local_gas_station,
|
||||
label: 'Liter getankt',
|
||||
value: '${detailCtrl.tank.szLiters} L',
|
||||
value: '${detailCtrl.tank.liter!} L',
|
||||
iconColor: Colors.orange,
|
||||
valueSize: 24,
|
||||
valueWeight: FontWeight.bold,
|
||||
@@ -90,7 +92,7 @@ class DetailPage extends GetView<DetailController> {
|
||||
child: DetailStatWidget(
|
||||
icon: Icons.euro,
|
||||
label: 'Preis pro Liter',
|
||||
value: '${detailCtrl.tank.szPricePerLiter}€',
|
||||
value: '${detailCtrl.tank.pricePerLiter!}€',
|
||||
iconColor: Colors.green,
|
||||
),
|
||||
),
|
||||
@@ -99,7 +101,7 @@ class DetailPage extends GetView<DetailController> {
|
||||
child: DetailStatWidget(
|
||||
icon: Icons.receipt,
|
||||
label: 'Gesamtpreis',
|
||||
value: '${detailCtrl.tank.szPriceTotal}€',
|
||||
value: '${detailCtrl.tank.szPriceTotal!}€',
|
||||
iconColor: Colors.green[700]!,
|
||||
valueWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -118,7 +120,7 @@ class DetailPage extends GetView<DetailController> {
|
||||
DetailStatWidget(
|
||||
icon: Icons.speed,
|
||||
label: 'Kilometerstand',
|
||||
value: '${detailCtrl.tank.szOdometer} km',
|
||||
value: '${detailCtrl.tank.odometer!} km',
|
||||
iconColor: Colors.blue,
|
||||
valueSize: 24,
|
||||
valueWeight: FontWeight.bold,
|
||||
|
||||
Reference in New Issue
Block a user