mod methodes

This commit is contained in:
2026-01-16 15:00:14 +01:00
parent 3a2dcfd7fc
commit 49886655fd
3 changed files with 8 additions and 9 deletions

View File

@@ -76,7 +76,7 @@ class EditController extends GetxController {
manufacturerController.text = filament.manufacturer ?? '';
purchaseDateController.text = filament.purchaseDate ?? '';
notesController.text = filament.notes ?? '';
piecesController.text = filament.pices?.toString() ?? '';
piecesController.text = filament.pices.toString();
printingTempController.text = filament.printingTemp?.toString() ?? '';
bedTempController.text = filament.bedTemp?.toString() ?? '';
}

View File

@@ -181,13 +181,12 @@ class DetailsPage extends GetView<DetailsController> {
value: '${filament.bedTemp}°C',
color: Colors.red,
),
if (filament.pices != null)
DetailInfoCard(
icon: Icons.inventory_2,
label: 'Anzahl Rollen',
value: '${filament.pices}',
color: Colors.purple,
),
DetailInfoCard(
icon: Icons.inventory_2,
label: 'Anzahl Rollen',
value: '${filament.pices}',
color: Colors.purple,
),
if (filament.manufacturer != null)
DetailInfoCard(
icon: Icons.business,

View File

@@ -161,7 +161,7 @@ class FilamentCard extends StatelessWidget {
label: filament.price.toStringAsFixed(2),
color: Colors.orange,
),
if (filament.pices != null && filament.pices! > 0)
if (filament.pices > 0)
_buildDetailChip(
icon: Icons.inventory_2,
label: '${filament.pices} Stk.',