From 75a3578049fcb182cb438d9770b2091c793ea576 Mon Sep 17 00:00:00 2001 From: "Aamir.Muhammad" Date: Wed, 8 Jul 2026 16:45:54 +0300 Subject: [PATCH] Offers And Discounts Complete --- ...and_discounts_full_screen_swiper_page.dart | 74 +++++++++++-------- 1 file changed, 43 insertions(+), 31 deletions(-) diff --git a/lib/presentation/offers_and_discounts/offer_and_discounts_full_screen_swiper_page.dart b/lib/presentation/offers_and_discounts/offer_and_discounts_full_screen_swiper_page.dart index 43f842e1..dd9a0bf3 100644 --- a/lib/presentation/offers_and_discounts/offer_and_discounts_full_screen_swiper_page.dart +++ b/lib/presentation/offers_and_discounts/offer_and_discounts_full_screen_swiper_page.dart @@ -15,7 +15,7 @@ import 'package:hmg_patient_app_new/widgets/buttons/custom_button.dart'; import 'package:hmg_patient_app_new/widgets/common_bottom_sheet.dart'; import 'package:hmg_patient_app_new/widgets/routes/custom_page_route.dart'; import 'package:provider/provider.dart'; -import 'package:share_plus/share_plus.dart'; +import 'package:share_plus/share_plus.dart' hide Share; import 'package:easy_localization/easy_localization.dart'; import 'package:shimmer/shimmer.dart'; @@ -141,34 +141,35 @@ class _OfferAndDiscountsFullScreenSwiperPageState extends State vm.pauseTimer(), + onTapUp: (_) => vm.resumeTimer(), + onTapCancel: () => vm.resumeTimer(), + behavior: HitTestBehavior.opaque, // Ensures the entire area is tappable + child: Stack( + children: [ + // Blurred background image + Positioned.fill( + child: Utils.buildImgWithNetwork( + url: vm.promoImages[vm.currentPage], + fit: BoxFit.cover, + width: double.infinity, + height: double.infinity, + iconColor: AppColors.whiteColor, + errorBuilder: (context, error, stackTrace) { + return Container(color: const Color(0xFFADA6D0)); + }, + ), ), - ), - // Black shadow overlay - Positioned.fill( - child: Container( - color: Colors.black.withValues(alpha: 0.3), + // Black shadow overlay + Positioned.fill( + child: Container( + color: Colors.black.withValues(alpha: 0.3), + ), ), - ), - // Main content - GestureDetector( - onTapDown: (_) => vm.pauseTimer(), - onTapUp: (_) => vm.resumeTimer(), - onTapCancel: () => vm.resumeTimer(), - child: Stack( + // Main content + Stack( children: [ Column( children: [ @@ -188,8 +189,8 @@ class _OfferAndDiscountsFullScreenSwiperPageState extends State