Remove a change and fix padding on transactions page
What changed, and why it matters
This commit makes small visual tweaks to the Cake Wallet app's transaction history and list row screens. It adds a tiny vertical padding around a transaction detail value, slightly reduces the default vertical padding of list items, and removes top/bottom padding from trailing text. There is no security-related change here.
No security action needed; treat as a routine UI polish commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is purely UI/UX layout adjustments in Flutter widgets. transaction_details_modal.dart wraps a trailing widget in Padding(vertical: 4). list_Item_style_wrapper.dart changes default vertical padding from 12 to 11 when no fixed height is set. list_item_regular_row_widget.dart removes top/bottom padding (4.0 each) from trailing text and fixes whitespace formatting. No logic, data handling, cryptography, networking, or permission code is modified.
Changed components
lib/new-ui/widgets/coins_page/assets_history/transaction_details_modal.dartlib/src/widgets/new_list_row/list_Item_style_wrapper.dartlib/src/widgets/new_list_row/list_item_regular_row_widget.dartInspect captured patch +21 / −18
diff --git a/lib/new-ui/widgets/coins_page/assets_history/transaction_details_modal.dart b/lib/new-ui/widgets/coins_page/assets_history/transaction_details_modal.dart
index 079b008c..a4b94515 100644
--- a/lib/new-ui/widgets/coins_page/assets_history/transaction_details_modal.dart
+++ b/lib/new-ui/widgets/coins_page/assets_history/transaction_details_modal.dart
@@ -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) {
diff --git a/lib/src/widgets/new_list_row/list_Item_style_wrapper.dart b/lib/src/widgets/new_list_row/list_Item_style_wrapper.dart
index 88ebf59c..9e5926cb 100644
--- a/lib/src/widgets/new_list_row/list_Item_style_wrapper.dart
+++ b/lib/src/widgets/new_list_row/list_Item_style_wrapper.dart
@@ -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,
diff --git a/lib/src/widgets/new_list_row/list_item_regular_row_widget.dart b/lib/src/widgets/new_list_row/list_item_regular_row_widget.dart
index 09cf9de7..5343b8c3 100644
--- a/lib/src/widgets/new_list_row/list_item_regular_row_widget.dart
+++ b/lib/src/widgets/new_list_row/list_item_regular_row_widget.dart
@@ -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,
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.