Skip to content

Commit

Permalink
Merge branch 'ui/redesign' into redesign/uc-classes
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroafmonteiro authored Jan 28, 2025
2 parents 43a7368 + 3a78367 commit bfc7b95
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,20 @@ abstract class GeneralPageViewState<T extends StatefulWidget> extends State<T> {
}

Widget getScaffold(BuildContext context, Widget body) {
return Scaffold(
backgroundColor: Theme.of(context).colorScheme.surface,
appBar: getTopNavbar(context),

// TODO:(thePeras): This should move to floating action button in order to be transparent in background
// See https://stackoverflow.com/questions/72246152/how-to-use-floating-bottom-navigation-bar-in-flutter
bottomNavigationBar: const AppBottomNavbar(),
body: RefreshState(
onRefresh: onRefresh,
header: getHeader(context),
body: body,
return MediaQuery.removePadding(
// Prevent misalignment of navbar icons
context: context,
removeBottom: true,
child: Scaffold(
backgroundColor: Theme.of(context).colorScheme.surface,
appBar: getTopNavbar(context),
extendBody: true, // Allow body to appear behind the bottom navbar
bottomNavigationBar: const AppBottomNavbar(),
body: RefreshState(
onRefresh: onRefresh,
header: getHeader(context),
body: body,
),
),
);
}
Expand Down
1 change: 1 addition & 0 deletions packages/uni_ui/lib/navbar/bottom_navbar_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class BottomNavbarItem {
: null,
child: UniIcon(
icon,
size: 32,
color: Theme.of(context).colorScheme.secondary,
),
),
Expand Down

0 comments on commit bfc7b95

Please sign in to comment.