From 21466b3f63247c2a8576ed85be988783b8b4d263 Mon Sep 17 00:00:00 2001 From: Matthew Patrick Date: Mon, 16 May 2022 02:01:21 +0700 Subject: [PATCH] home - Fixed navbar hiding bottom screen --- lib/screens/home.dart | 62 ++++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/lib/screens/home.dart b/lib/screens/home.dart index 411c3d5..47a54ea 100644 --- a/lib/screens/home.dart +++ b/lib/screens/home.dart @@ -20,36 +20,38 @@ class Home extends StatelessWidget { centerTitle: true, backgroundColor: const Color(0xff212226), ), - body: SingleChildScrollView( - physics: const BouncingScrollPhysics( - parent: AlwaysScrollableScrollPhysics()), - padding: const EdgeInsets.all(defaultPadding), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - "Explore", - style: Theme.of(context) - .textTheme - .headline4! - .copyWith(fontWeight: FontWeight.w500, color: Colors.white), - ), - const Text( - "Best Looking Sneakers For You...", - style: TextStyle(fontSize: 18, color: Colors.white), - ), - const Padding( - padding: EdgeInsets.symmetric(vertical: defaultPadding), - child: SearchForm(), - ), - Carousel(), - const NewArrivalProducts(), - const SizedBox( - height: 15, - ), - const Bannerimage(), - const PopularProducts(), - ], + body: SafeArea( + child: SingleChildScrollView( + physics: const BouncingScrollPhysics( + parent: AlwaysScrollableScrollPhysics()), + padding: const EdgeInsets.all(defaultPadding), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + "Explore", + style: Theme.of(context) + .textTheme + .headline4! + .copyWith(fontWeight: FontWeight.w500, color: Colors.white), + ), + const Text( + "Best Looking Sneakers For You...", + style: TextStyle(fontSize: 18, color: Colors.white), + ), + const Padding( + padding: EdgeInsets.symmetric(vertical: defaultPadding), + child: SearchForm(), + ), + Carousel(), + const NewArrivalProducts(), + const SizedBox( + height: 15, + ), + const Bannerimage(), + const PopularProducts(), + ], + ), ), ), );