Stand 2024-11-18

This commit is contained in:
Jens Reinemuth 2024-11-18 16:20:19 +01:00
parent f6990e4e12
commit 886d9dcc0e

View file

@ -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,
),
)
],
),
);
}