From 1af6ab00eb4fd4c375b6888e75b9180ab4038eb2 Mon Sep 17 00:00:00 2001 From: Robert Malikowski Date: Fri, 3 Jul 2026 14:46:23 +0200 Subject: [PATCH] layout fix --- .../coins_page/assets_history/assets_history_section.dart | 1 + .../widgets/coins_page/assets_history/history_top_bar.dart | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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 81fad913d..c3f699d52 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 { 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 c8749b731..cbb80111b 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(