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 ?? ''; manufacturerController.text = filament.manufacturer ?? '';
purchaseDateController.text = filament.purchaseDate ?? ''; purchaseDateController.text = filament.purchaseDate ?? '';
notesController.text = filament.notes ?? ''; notesController.text = filament.notes ?? '';
piecesController.text = filament.pices?.toString() ?? ''; piecesController.text = filament.pices.toString();
printingTempController.text = filament.printingTemp?.toString() ?? ''; printingTempController.text = filament.printingTemp?.toString() ?? '';
bedTempController.text = filament.bedTemp?.toString() ?? ''; bedTempController.text = filament.bedTemp?.toString() ?? '';
} }

View File

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

View File

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