Skip to content

Commit

Permalink
fix: add safe area in home
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Dec 8, 2023
1 parent 956f4b1 commit 9ee6067
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions lib/pages/home/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,25 @@ class HomePage extends HookConsumerWidget {
Widget build(BuildContext context, ref) {
final controller = useScrollController();

return Scaffold(
appBar:
DesktopTools.platform.isMobile ? null : const PageWindowTitleBar(),
body: CustomScrollView(
controller: controller,
slivers: [
const HomeGenresSection(),
SliverList.list(
children: const [
HomeFeaturedSection(),
HomeNewReleasesSection(),
return SafeArea(
bottom: false,
child: Scaffold(
appBar: DesktopTools.platform.isMobile
? null
: const PageWindowTitleBar(),
body: CustomScrollView(
controller: controller,
slivers: [
const HomeGenresSection(),
SliverList.list(
children: const [
HomeFeaturedSection(),
HomeNewReleasesSection(),
],
),
const SliverSafeArea(sliver: HomeMadeForUserSection()),
],
),
const SliverSafeArea(sliver: HomeMadeForUserSection()),
],
),
);
));
}
}

0 comments on commit 9ee6067

Please sign in to comment.