price per item is printed
This commit is contained in:
@@ -12,12 +12,14 @@ class FilamentCard extends StatelessWidget {
|
||||
required this.onTap,
|
||||
required this.onAction,
|
||||
this.verbrauchGramm = 0,
|
||||
this.hatProfil = false,
|
||||
});
|
||||
|
||||
final KaufFilamentModel filament;
|
||||
final VoidCallback onTap;
|
||||
final ValueChanged<String> onAction;
|
||||
final double verbrauchGramm;
|
||||
final bool hatProfil;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -155,6 +157,11 @@ class FilamentCard extends StatelessWidget {
|
||||
icon: Icons.layers_outlined,
|
||||
),
|
||||
_DetailPill(label: weight, icon: Icons.scale_outlined),
|
||||
if (hatProfil)
|
||||
const _DetailPill(
|
||||
label: 'Profil erstellt',
|
||||
icon: Icons.check_circle_outline,
|
||||
),
|
||||
],
|
||||
),
|
||||
const Padding(
|
||||
|
||||
Reference in New Issue
Block a user