Offers And Discounts Complete

offers_discounts
Aamir Muhammad 1 month ago
parent 024fa602e6
commit 4a6f3f4240

@ -486,7 +486,7 @@ class _LandingPageState extends State<LandingPage> {
Navigator.of(context).push(CustomPageRoute(page: OffersAndDiscountsPage())); Navigator.of(context).push(CustomPageRoute(page: OffersAndDiscountsPage()));
}), }),
SizedBox(height: 16.h), SizedBox(height: 16.h),
OffersAndDiscountsCarousel().paddingOnly(left: 24.w), OffersAndDiscountsCarousel(),
], ],
); );
} }

@ -100,7 +100,7 @@ class _OffersAndDiscountsCarouselState extends State<OffersAndDiscountsCarousel>
child: ListView.separated( child: ListView.separated(
controller: _scrollController, controller: _scrollController,
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
padding: EdgeInsets.symmetric(horizontal: 0.w), padding: EdgeInsets.only(left: 24.w, right: 24.w),
itemCount: viewModel.offersList.length, itemCount: viewModel.offersList.length,
itemBuilder: (context, index) { itemBuilder: (context, index) {
final offer = viewModel.offersList[index]; final offer = viewModel.offersList[index];

Loading…
Cancel
Save