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