What changed, and why it matters
This commit is a purely cosmetic UI layout fix. It adds a rounded-bottom toggle to a history top bar widget and adjusts padding so the bar looks correct when there are no items below it. There is no security relevance.
No security action needed. Treat as routine UI polish.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change adds a roundedBottom boolean parameter to HistoryTopBar, passed from AssetsHistorySection based on whether dashboardViewModel.itemsShort.isEmpty. The widget then conditionally applies either Radius.zero or Radius.circular(18) to the bottom border radius and adds vertical padding of 8. This is a Flutter widget styling adjustment only.
Changed components
lib/new-ui/widgets/coins_page/assets_history/assets_history_section.dartlib/new-ui/widgets/coins_page/assets_history/history_top_bar.dartInspect captured patch +5 / −1
diff --git a/lib/new-ui/widgets/coins_page/assets_history/assets_history_section.dart b/lib/new-ui/widgets/coins_page/assets_history/assets_history_section.dart
index 81fad913..c3f699d5 100644
--- a/lib/new-ui/widgets/coins_page/assets_history/assets_history_section.dart
+++ b/lib/new-ui/widgets/coins_page/assets_history/assets_history_section.dart
@@ -109,6 +109,7 @@ class _AssetsHistorySectionState extends State<AssetsHistorySection> {
if (tabs.length == 1)
HistoryTopBar(
onTap: () => openHistoryModal(context),
+ roundedBottom: widget.dashboardViewModel.itemsShort.isEmpty,
),
tabs[_selectedTab].content
],
diff --git a/lib/new-ui/widgets/coins_page/assets_history/history_top_bar.dart b/lib/new-ui/widgets/coins_page/assets_history/history_top_bar.dart
index c8749b73..cbb80111 100644
--- a/lib/new-ui/widgets/coins_page/assets_history/history_top_bar.dart
+++ b/lib/new-ui/widgets/coins_page/assets_history/history_top_bar.dart
@@ -3,9 +3,10 @@ import 'package:cake_wallet/src/widgets/cake_image_widget.dart';
import 'package:flutter/material.dart';
class HistoryTopBar extends StatelessWidget {
- const HistoryTopBar({super.key, required this.onTap});
+ const HistoryTopBar({super.key, required this.onTap, required this.roundedBottom});
final VoidCallback onTap;
+ final bool roundedBottom;
@override
Widget build(BuildContext context) {
@@ -19,10 +20,12 @@ class HistoryTopBar extends StatelessWidget {
decoration: BoxDecoration(
borderRadius: BorderRadius.vertical(
top: Radius.circular(18),
+ bottom: roundedBottom ? Radius.zero : Radius.circular(18)
),
color: Theme.of(context).colorScheme.surfaceContainer),
child: Padding(
padding: EdgeInsets.symmetric(
+ vertical: 8,
horizontal: 12,
),
child: Column(
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.