layout fix

Robert Malikowski committed Jul 3, 2026 at 14:46 UTC 1af6ab00eb4fd4c375b6888e75b9180ab4038eb2
2 files changed +5 -1
lib/new-ui/widgets/coins_page/assets_history/assets_history_section.dart
+1
@@ -109,6 +109,7 @@ class _AssetsHistorySectionState extends State<AssetsHistorySection> {
109 if (tabs.length == 1)
110 HistoryTopBar(
111 onTap: () => openHistoryModal(context),
112 + roundedBottom: widget.dashboardViewModel.itemsShort.isEmpty,
113 ),
114 tabs[_selectedTab].content
115 ],
lib/new-ui/widgets/coins_page/assets_history/history_top_bar.dart
+4 -1
@@ -3,9 +3,10 @@ import 'package:cake_wallet/src/widgets/cake_image_widget.dart';
3 import 'package:flutter/material.dart';
4
5 class HistoryTopBar extends StatelessWidget {
6 - const HistoryTopBar({super.key, required this.onTap});
6 + const HistoryTopBar({super.key, required this.onTap, required this.roundedBottom});
7
8 final VoidCallback onTap;
9 + final bool roundedBottom;
10
11 @override
12 Widget build(BuildContext context) {
@@ -19,10 +20,12 @@ class HistoryTopBar extends StatelessWidget {
20 decoration: BoxDecoration(
21 borderRadius: BorderRadius.vertical(
22 top: Radius.circular(18),
23 + bottom: roundedBottom ? Radius.zero : Radius.circular(18)
24 ),
25 color: Theme.of(context).colorScheme.surfaceContainer),
26 child: Padding(
27 padding: EdgeInsets.symmetric(
28 + vertical: 8,
29 horizontal: 12,
30 ),
31 child: Column(