From 526fd63b2632c4be5acc075bd990f8faaef8ce5f Mon Sep 17 00:00:00 2001 From: vjrj <vjrj@comunes.org> Date: Sun, 2 Apr 2023 19:56:56 +0200 Subject: [PATCH] Fix show balance with a more explicit icon --- .../fourth_screen/transaction_page.dart | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/lib/ui/widgets/fourth_screen/transaction_page.dart b/lib/ui/widgets/fourth_screen/transaction_page.dart index 70408a2d..aa26228d 100644 --- a/lib/ui/widgets/fourth_screen/transaction_page.dart +++ b/lib/ui/widgets/fourth_screen/transaction_page.dart @@ -78,11 +78,20 @@ class _TransactionsAndBalanceWidgetState // _refreshTransactions(); }, ), - const BackdropToggleButton() - /* IconButton( - icon: const Icon(Icons.savings), - onPressed: () => Backdrop.of(context).animationController, - ) */ + // const BackdropToggleButton(), + LayoutBuilder( + builder: (BuildContext lContext, + BoxConstraints constraints) => + IconButton( + icon: const Icon(Icons.savings), + onPressed: () { + if (Backdrop.of(lContext).isBackLayerConcealed) { + Backdrop.of(lContext).revealBackLayer(); + } else { + Backdrop.of(lContext).concealBackLayer(); + } + })), + const SizedBox(width: 10), ], ), backLayer: Center( -- GitLab