add some new features

This commit is contained in:
2026-10-29 15:03:48 +01:00
parent c876405a8f
commit 20012db615
39 changed files with 2908 additions and 97 deletions
+15 -1
View File
@@ -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',