Skip to content

Commit

Permalink
feat(app): remove bottom parameter for page scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Mar 1, 2024
1 parent 6c826f8 commit c6a9cad
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions app/lib/common/widgets/page_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,9 @@ Widget buildTitle(String text, { String? tooltipText }) {
);
}

AppBar? buildBarBottom(String? barBottom) {
return barBottom == null
? null
: AppBar(
automaticallyImplyLeading: false,
scrolledUnderElevation: 0,
backgroundColor: PharMeTheme.appBarTheme.backgroundColor,
elevation: PharMeTheme.appBarTheme.elevation,
title: RichText(
text: TextSpan(
children: [
TextSpan(
text: barBottom,
style: PharMeTheme.textTheme.bodyLarge,
),
]
),
),
);
}

Scaffold pageScaffold({
required String title,
required List<Widget> body,
String? barBottom,
List<Widget>? actions,
Key? key,
}) {
Expand All @@ -68,7 +46,6 @@ Scaffold pageScaffold({
centerTitle: PharMeTheme.appBarTheme.centerTitle,
title: buildTitle(title),
actions: actions,
bottom: buildBarBottom(barBottom),
),
SliverPadding(
padding: pagePadding(),
Expand All @@ -82,7 +59,6 @@ Scaffold unscrollablePageScaffold({
required Widget body,
String? title,
String? titleTooltip,
String? barBottom,
List<Widget>? actions,
Widget? drawer,
bool automaticallyImplyLeading = true,
Expand All @@ -99,7 +75,6 @@ Scaffold unscrollablePageScaffold({
centerTitle: PharMeTheme.appBarTheme.centerTitle,
title: buildTitle(title, tooltipText: titleTooltip),
actions: actions,
bottom: buildBarBottom(barBottom),
scrolledUnderElevation: 0,
);
return Scaffold(
Expand Down

0 comments on commit c6a9cad

Please sign in to comment.