From f464bc291cce6156c362752ce7503d0bbc77cecf Mon Sep 17 00:00:00 2001 From: Ethan Lee <125412902+ethan-tbd@users.noreply.github.com> Date: Mon, 12 Feb 2024 10:23:11 -0800 Subject: [PATCH] chore: remove scrolled elevation (#57) * remove `scrolledUnderElevation` * set `scrolledUnderElevation` to `0` in `PfisPage` * set `scrolledUnderElevation` to `0` in `SendDidPage` * set `scrolledUnderElevation` to `0` in theme --- lib/features/send/send_did_page.dart | 26 ++++++++++++++------------ lib/shared/theme/theme.dart | 6 ++++++ 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/lib/features/send/send_did_page.dart b/lib/features/send/send_did_page.dart index b4b346fa..6fe7cdf4 100644 --- a/lib/features/send/send_did_page.dart +++ b/lib/features/send/send_did_page.dart @@ -14,18 +14,20 @@ class SendDidPage extends HookWidget { return Scaffold( appBar: AppBar( - title: Column(children: [ - Text( - '\$$sendAmount', - style: Theme.of(context).textTheme.headlineMedium, - textAlign: TextAlign.center, - ), - Text( - Loc.of(context).accountBalance, - style: Theme.of(context).textTheme.bodyMedium, - textAlign: TextAlign.center, - ) - ])), + title: Column( + children: [ + Text( + '\$$sendAmount', + style: Theme.of(context).textTheme.headlineMedium, + textAlign: TextAlign.center, + ), + Text( + Loc.of(context).accountBalance, + style: Theme.of(context).textTheme.bodyMedium, + textAlign: TextAlign.center, + ) + ], + )), body: SafeArea( child: Column(crossAxisAlignment: CrossAxisAlignment.stretch, children: [ diff --git a/lib/shared/theme/theme.dart b/lib/shared/theme/theme.dart index db3e4cbc..6061e140 100644 --- a/lib/shared/theme/theme.dart +++ b/lib/shared/theme/theme.dart @@ -7,6 +7,9 @@ ThemeData lightTheme(BuildContext context) => ThemeData( useMaterial3: true, colorScheme: lightColorScheme, textTheme: textTheme(ThemeData().textTheme), + appBarTheme: const AppBarTheme( + scrolledUnderElevation: 0, + ), segmentedButtonTheme: SegmentedButtonThemeData( style: ButtonStyle( backgroundColor: MaterialStateProperty.resolveWith( @@ -36,6 +39,9 @@ ThemeData darkTheme(BuildContext context) => ThemeData( useMaterial3: true, colorScheme: darkColorScheme, textTheme: textTheme(ThemeData.dark().textTheme), + appBarTheme: const AppBarTheme( + scrolledUnderElevation: 0, + ), segmentedButtonTheme: SegmentedButtonThemeData( style: ButtonStyle( backgroundColor: MaterialStateProperty.resolveWith(