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 style: theme.currentThemeData.textTheme.labelMedium
?.copyWith(color: theme.currentColorScheme.primary), ?.copyWith(color: theme.currentColorScheme.primary),
), ),
theme.verticalSpacer, theme.verticalSpacerSmall,
_getSortedMaterials(context), _getSortedMaterials(context),
theme.verticalSpacer, theme.verticalSpacer,
if (massnahme.costsMaterial != null) if (massnahme.costsMaterial != null)
@ -57,15 +57,23 @@ class MaterialCard extends StatelessWidget {
} }
} }
items.sort((a, b) => a.toString().compareTo(b.toString())); items.sort((a, b) => a.toString().compareTo(b.toString()));
List<ListTile> tiles = []; List<Widget> tiles = [];
for (String item in items) { for (String item in items) {
tiles.add( tiles.add(
ListTile( Row(
leading: const Icon(Icons.fiber_manual_record), children: [
title: Text( const Icon(
Icons.fiber_manual_record,
size: 8,
),
theme.horizontalSpacerSmall,
Expanded(
child: Text(
item, item,
style: theme.currentThemeData.textTheme.bodyMedium, style: theme.currentThemeData.textTheme.bodyMedium,
), ),
)
],
), ),
); );
} }