From 9ee60677f6d50df7468e12dc6653ecedefa2494f Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Fri, 8 Dec 2023 23:31:20 +0600 Subject: [PATCH] fix: add safe area in home --- lib/pages/home/home.dart | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/lib/pages/home/home.dart b/lib/pages/home/home.dart index 2970cb62a..9b33a66c5 100644 --- a/lib/pages/home/home.dart +++ b/lib/pages/home/home.dart @@ -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()), - ], - ), - ); + )); } }