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,
|
||||
|
||||
@@ -144,7 +144,7 @@ class HomePage extends GetView<HomeController> {
|
||||
CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
tank.szDate,
|
||||
tank.tankDate!,
|
||||
style: const TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight:
|
||||
@@ -153,7 +153,7 @@ class HomePage extends GetView<HomeController> {
|
||||
),
|
||||
const SizedBox(height: 2),
|
||||
Text(
|
||||
'${tank.szLiters} Liter',
|
||||
'${tank.liter!} Liter',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: Colors.grey[600],
|
||||
@@ -198,12 +198,12 @@ class HomePage extends GetView<HomeController> {
|
||||
_buildInfoChip(
|
||||
icon: Icons.euro,
|
||||
label: 'Preis/L',
|
||||
value: '${tank.szPricePerLiter}€',
|
||||
value: '${tank.pricePerLiter!}€',
|
||||
),
|
||||
_buildInfoChip(
|
||||
icon: Icons.speed,
|
||||
label: 'Km-Stand',
|
||||
value: '${tank.szOdometer} km',
|
||||
value: '${tank.odometer!} km',
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -24,7 +24,7 @@ class LoginPage extends GetView<LoginController> {
|
||||
color: Colors.blue.shade100,
|
||||
child: SingleChildScrollView(
|
||||
child: MyLoginWidget(
|
||||
onButtonPressed: () => logCtrl.login(),
|
||||
onButtonPressed: () => logCtrl.newLoginDirectus(),
|
||||
signInOnTab: () => logCtrl.goToSignInPage(),
|
||||
logCtrl: logCtrl,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user