add some new features
This commit is contained in:
@@ -137,6 +137,11 @@ class FilamentCard extends StatelessWidget {
|
||||
const SizedBox(height: 8),
|
||||
LinearProgressIndicator(
|
||||
value: (rest! / start).clamp(0.0, 1.0),
|
||||
color: rest < 100
|
||||
? Colors.red
|
||||
: rest <= start / 2
|
||||
? Colors.blue
|
||||
: null,
|
||||
minHeight: 6,
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
backgroundColor: AppTheme.inputSurface,
|
||||
@@ -156,7 +161,16 @@ class FilamentCard extends StatelessWidget {
|
||||
label: filament.material,
|
||||
icon: Icons.layers_outlined,
|
||||
),
|
||||
_DetailPill(label: weight, icon: Icons.scale_outlined),
|
||||
_DetailPill(
|
||||
label: 'Netto: $weight',
|
||||
icon: Icons.scale_outlined,
|
||||
),
|
||||
if (filament.bruttoGewichtGramm != null)
|
||||
_DetailPill(
|
||||
label:
|
||||
'Brutto mit Spule: ${DisplayFormats.number(filament.bruttoGewichtGramm!)} g',
|
||||
icon: Icons.scale_outlined,
|
||||
),
|
||||
if (hatProfil)
|
||||
const _DetailPill(
|
||||
label: 'Profil erstellt',
|
||||
|
||||
Reference in New Issue
Block a user