diff --git a/lib/src/pages/actions/detail/cards/material_card.dart b/lib/src/pages/actions/detail/cards/material_card.dart index 00f13f3..f8f4d60 100644 --- a/lib/src/pages/actions/detail/cards/material_card.dart +++ b/lib/src/pages/actions/detail/cards/material_card.dart @@ -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 tiles = []; + List 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, + ), + ) + ], ), ); }