Skip to content

Commit

Permalink
chore: remove scrolled elevation (#57)
Browse files Browse the repository at this point in the history
* remove `scrolledUnderElevation`

* set `scrolledUnderElevation` to `0` in `PfisPage`

* set `scrolledUnderElevation` to `0` in `SendDidPage`

* set `scrolledUnderElevation` to `0` in theme
  • Loading branch information
ethan-tbd authored Feb 12, 2024
1 parent ff33557 commit f464bc2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
26 changes: 14 additions & 12 deletions lib/features/send/send_did_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
6 changes: 6 additions & 0 deletions lib/shared/theme/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<Color>(
Expand Down Expand Up @@ -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<Color>(
Expand Down

0 comments on commit f464bc2

Please sign in to comment.