Add padding to list items

tuxsudo committed Apr 8, 2026 at 19:24 UTC 18228aad9e5b692712e72b8e868487c650c2e004
2 files changed +24 -18
lib/src/widgets/new_list_row/list_item_regular_row_widget.dart
+8 -5
@@ -92,7 +92,7 @@ class ListItemRegularRowWidget extends StatelessWidget {
92 children: [
93 if (trailingTextToShow != null)
94 Padding(
95 - padding: const EdgeInsets.only(right: 8.0),
95 + padding: const EdgeInsets.only(top: 4.0, bottom: 4.0, right: 8.0),
96 child: Text(
97 trailingTextToShow,
98 style: labelStyle,
@@ -108,10 +108,13 @@ class ListItemRegularRowWidget extends StatelessWidget {
108 colorFilter: ColorFilter.mode(foregroundColor ?? Theme.of(context).colorScheme.onSurfaceVariant,BlendMode.srcIn),
109 )
110 else if (showArrow)
111 - CakeImageWidget(imageUrl:
112 - "assets/new-ui/arrow_forward.svg",
113 - height: 14,
114 - color: theme.colorScheme.onSurfaceVariant
111 + Padding(
112 + padding: const EdgeInsets.symmetric(vertical: 7.0),
113 + child: CakeImageWidget(imageUrl:
114 + "assets/new-ui/arrow_forward.svg",
115 + height: 14,
116 + color: theme.colorScheme.onSurfaceVariant
117 + ),
118 )
119 ],
120 ),
lib/src/widgets/new_list_row/list_item_selector_widget.dart
+16 -13
@@ -36,19 +36,22 @@ class ListItemSelectorWidget extends StatelessWidget {
36 mainAxisAlignment: MainAxisAlignment.spaceBetween,
37 children: [
38 Flexible(child: Text(label, style: textStyle)),
39 - Row(
40 - spacing: 8,
41 - children: [
42 - Text(
43 - options[selectedIndex],
44 - style: labelStyle,
45 - ),
46 - CakeImageWidget(imageUrl:
47 - "assets/new-ui/chooser.svg",
48 - colorFilter:
49 - ColorFilter.mode(theme.colorScheme.onSurfaceVariant, BlendMode.srcIn),
50 - ),
51 - ],
39 + Padding(
40 + padding: const EdgeInsets.symmetric(vertical: 4.0),
41 + child: Row(
42 + spacing: 8,
43 + children: [
44 + Text(
45 + options[selectedIndex],
46 + style: labelStyle,
47 + ),
48 + CakeImageWidget(imageUrl:
49 + "assets/new-ui/chooser.svg",
50 + colorFilter:
51 + ColorFilter.mode(theme.colorScheme.onSurfaceVariant, BlendMode.srcIn),
52 + ),
53 + ],
54 + ),
55 ),
56 ],
57 );