add detail page
This commit is contained in:
@@ -27,6 +27,7 @@ class FilamentCard extends StatelessWidget {
|
||||
'purple': Colors.purple,
|
||||
'pink': Colors.pink,
|
||||
'grey': Colors.grey,
|
||||
'brown': Colors.brown,
|
||||
};
|
||||
|
||||
return colorMap[colorName.toLowerCase()] ?? Colors.grey;
|
||||
@@ -152,7 +153,7 @@ class FilamentCard extends StatelessWidget {
|
||||
),
|
||||
_buildDetailChip(
|
||||
icon: Icons.scale,
|
||||
label: '${filament.weight}g',
|
||||
label: '${filament.weight - filament.weightUsed}g',
|
||||
color: Colors.green,
|
||||
),
|
||||
_buildDetailChip(
|
||||
@@ -166,6 +167,11 @@ class FilamentCard extends StatelessWidget {
|
||||
label: '${filament.pices} Stk.',
|
||||
color: Colors.purple,
|
||||
),
|
||||
_buildDetailChip(
|
||||
icon: Icons.scale,
|
||||
label: '${filament.weightUsed}g',
|
||||
color: Colors.red,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user