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(