mod methodes
This commit is contained in:
@@ -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() ?? '';
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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.',
|
||||
|
||||
Reference in New Issue
Block a user