fix: add safe area in home

This commit is contained in:
Kingkor Roy Tirtho 2023-12-08 23:31:20 +06:00
parent 956f4b198b
commit 9ee60677f6

View File

@ -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()),
],
),
);
));
}
}