layout fix

This commit is contained in:
Robert Malikowski
2026-07-03 14:46:23 +02:00
parent bfeae1eca8
commit 1af6ab00eb
2 changed files with 5 additions and 1 deletions
@@ -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
],
@@ -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(