Remove a change and fix padding on transactions page

This commit is contained in:
tuxsudo
2026-04-08 22:03:22 -04:00
parent 18228aad9e
commit 3ab5c502f2
3 changed files with 21 additions and 18 deletions
@@ -192,21 +192,24 @@ class _TransactionDetailsModalState extends State<TransactionDetailsModal> {
}
Widget _buildTrailingWIdget(TransactionDetailsListItem item) {
return switch (item.runtimeType) {
ConfirmationsListItem => Row(
children: [
Text((item as ConfirmationsListItem).current.toString(),
style: TextStyle(color: Theme.of(context).colorScheme.primary)),
if (item.needed > 0)
Text("/${item.needed}",
style: TextStyle(color: Theme.of(context).colorScheme.onSurfaceVariant))
],
),
_ => Text(
item.value,
style: TextStyle(color: Theme.of(context).colorScheme.onSurfaceVariant),
)
};
return Padding(
padding: const EdgeInsets.symmetric(vertical: 4.0),
child: switch (item.runtimeType) {
ConfirmationsListItem => Row(
children: [
Text((item as ConfirmationsListItem).current.toString(),
style: TextStyle(color: Theme.of(context).colorScheme.primary)),
if (item.needed > 0)
Text("/${item.needed}",
style: TextStyle(color: Theme.of(context).colorScheme.onSurfaceVariant))
],
),
_ => Text(
item.value,
style: TextStyle(color: Theme.of(context).colorScheme.onSurfaceVariant),
)
},
);
}
Widget _buildBottomWidget(TransactionDetailsListItem item) {
@@ -59,7 +59,7 @@ class ListItemStyleWrapper extends StatelessWidget {
child: InkWell(
onTap: onTap,
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 12, vertical: height == null ? 12 : 0),
padding: EdgeInsets.symmetric(horizontal: 12, vertical: height == null ? 11 : 0),
child: builder(context, textStyle, labelStyle))))),
if(iconPath != null && isLastInSection == false) Container(
color: theme.colorScheme.surfaceContainer,
@@ -66,7 +66,7 @@ class ListItemRegularRowWidget extends StatelessWidget {
if (iconPath != null)
Padding(
padding: const EdgeInsets.only(right: 12.0),
child: CakeImageWidget(imageUrl: iconPath!, width: 24,height: 24,)
child: CakeImageWidget(imageUrl: iconPath!, width: 24, height: 24,)
),
Flexible(
child: Column(
@@ -92,7 +92,7 @@ class ListItemRegularRowWidget extends StatelessWidget {
children: [
if (trailingTextToShow != null)
Padding(
padding: const EdgeInsets.only(top: 4.0, bottom: 4.0, right: 8.0),
padding: const EdgeInsets.only(right: 8.0),
child: Text(
trailingTextToShow,
style: labelStyle,