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) { Widget build(BuildContext context, ref) {
final controller = useScrollController(); final controller = useScrollController();
return Scaffold( return SafeArea(
appBar: bottom: false,
DesktopTools.platform.isMobile ? null : const PageWindowTitleBar(), child: Scaffold(
body: CustomScrollView( appBar: DesktopTools.platform.isMobile
controller: controller, ? null
slivers: [ : const PageWindowTitleBar(),
const HomeGenresSection(), body: CustomScrollView(
SliverList.list( controller: controller,
children: const [ slivers: [
HomeFeaturedSection(), const HomeGenresSection(),
HomeNewReleasesSection(), SliverList.list(
children: const [
HomeFeaturedSection(),
HomeNewReleasesSection(),
],
),
const SliverSafeArea(sliver: HomeMadeForUserSection()),
], ],
), ),
const SliverSafeArea(sliver: HomeMadeForUserSection()), ));
],
),
);
} }
} }