Stand 2024-11-18
This commit is contained in:
parent
f6990e4e12
commit
886d9dcc0e
1 changed files with 16 additions and 8 deletions
|
@ -31,7 +31,7 @@ class MaterialCard extends StatelessWidget {
|
|||
style: theme.currentThemeData.textTheme.labelMedium
|
||||
?.copyWith(color: theme.currentColorScheme.primary),
|
||||
),
|
||||
theme.verticalSpacer,
|
||||
theme.verticalSpacerSmall,
|
||||
_getSortedMaterials(context),
|
||||
theme.verticalSpacer,
|
||||
if (massnahme.costsMaterial != null)
|
||||
|
@ -57,15 +57,23 @@ class MaterialCard extends StatelessWidget {
|
|||
}
|
||||
}
|
||||
items.sort((a, b) => a.toString().compareTo(b.toString()));
|
||||
List<ListTile> tiles = [];
|
||||
List<Widget> tiles = [];
|
||||
for (String item in items) {
|
||||
tiles.add(
|
||||
ListTile(
|
||||
leading: const Icon(Icons.fiber_manual_record),
|
||||
title: Text(
|
||||
item,
|
||||
style: theme.currentThemeData.textTheme.bodyMedium,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
const Icon(
|
||||
Icons.fiber_manual_record,
|
||||
size: 8,
|
||||
),
|
||||
theme.horizontalSpacerSmall,
|
||||
Expanded(
|
||||
child: Text(
|
||||
item,
|
||||
style: theme.currentThemeData.textTheme.bodyMedium,
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue