From 97bcdba5053192a6b969ee6933f5c2450cc85bff Mon Sep 17 00:00:00 2001 From: Restioson Date: Mon, 3 Jun 2024 14:06:43 +0200 Subject: [PATCH] fix: don't change app bar colour when scrolling --- mobile/lib/common/app_bar_wrapper.dart | 1 + mobile/lib/features/wallet/receive_screen.dart | 2 +- mobile/lib/features/welcome/seed_import_screen.dart | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mobile/lib/common/app_bar_wrapper.dart b/mobile/lib/common/app_bar_wrapper.dart index d52fc7946..7468a1f11 100644 --- a/mobile/lib/common/app_bar_wrapper.dart +++ b/mobile/lib/common/app_bar_wrapper.dart @@ -29,6 +29,7 @@ class AppBarWrapper extends StatelessWidget { return Container( margin: const EdgeInsets.only(left: 10.0, right: 5.0), child: AppBar( + scrolledUnderElevation: 0.0, centerTitle: true, elevation: 0, backgroundColor: appBackgroundColor, diff --git a/mobile/lib/features/wallet/receive_screen.dart b/mobile/lib/features/wallet/receive_screen.dart index bd463af41..da31dfaf3 100644 --- a/mobile/lib/features/wallet/receive_screen.dart +++ b/mobile/lib/features/wallet/receive_screen.dart @@ -70,7 +70,7 @@ class _ReceiveScreenState extends State { if (_paymentRequest == null) { return Scaffold( - appBar: AppBar(title: const Text("Receive funds")), + appBar: AppBar(title: const Text("Receive funds"), scrolledUnderElevation: 0.0), body: const Center( child: SizedBox(width: 20, height: 20, child: CircularProgressIndicator()))); } diff --git a/mobile/lib/features/welcome/seed_import_screen.dart b/mobile/lib/features/welcome/seed_import_screen.dart index 670849b09..e26e102d1 100644 --- a/mobile/lib/features/welcome/seed_import_screen.dart +++ b/mobile/lib/features/welcome/seed_import_screen.dart @@ -46,7 +46,7 @@ class SeedPhraseImporterState extends State { var isImportDisabled = twelveWords.length < 12; return Scaffold( - appBar: AppBar(title: const Text('Manual restore')), + appBar: AppBar(title: const Text('Manual restore'), scrolledUnderElevation: 0.0), // this is needed to prevent an overflow when the keyboard is up resizeToAvoidBottomInset: false, body: Column(