home - Fixed navbar hiding bottom screen

This commit is contained in:
Matthew Patrick 2022-05-16 02:01:21 +07:00
parent 8c8d8aa150
commit 21466b3f63

View file

@ -20,36 +20,38 @@ class Home extends StatelessWidget {
centerTitle: true, centerTitle: true,
backgroundColor: const Color(0xff212226), backgroundColor: const Color(0xff212226),
), ),
body: SingleChildScrollView( body: SafeArea(
physics: const BouncingScrollPhysics( child: SingleChildScrollView(
parent: AlwaysScrollableScrollPhysics()), physics: const BouncingScrollPhysics(
padding: const EdgeInsets.all(defaultPadding), parent: AlwaysScrollableScrollPhysics()),
child: Column( padding: const EdgeInsets.all(defaultPadding),
crossAxisAlignment: CrossAxisAlignment.start, child: Column(
children: [ crossAxisAlignment: CrossAxisAlignment.start,
Text( children: [
"Explore", Text(
style: Theme.of(context) "Explore",
.textTheme style: Theme.of(context)
.headline4! .textTheme
.copyWith(fontWeight: FontWeight.w500, color: Colors.white), .headline4!
), .copyWith(fontWeight: FontWeight.w500, color: Colors.white),
const Text( ),
"Best Looking Sneakers For You...", const Text(
style: TextStyle(fontSize: 18, color: Colors.white), "Best Looking Sneakers For You...",
), style: TextStyle(fontSize: 18, color: Colors.white),
const Padding( ),
padding: EdgeInsets.symmetric(vertical: defaultPadding), const Padding(
child: SearchForm(), padding: EdgeInsets.symmetric(vertical: defaultPadding),
), child: SearchForm(),
Carousel(), ),
const NewArrivalProducts(), Carousel(),
const SizedBox( const NewArrivalProducts(),
height: 15, const SizedBox(
), height: 15,
const Bannerimage(), ),
const PopularProducts(), const Bannerimage(),
], const PopularProducts(),
],
),
), ),
), ),
); );