Offers And Discounts Complete

offers_discounts
Aamir Muhammad 4 weeks ago
parent 4a6f3f4240
commit c8eaf9a209

@ -206,7 +206,6 @@ class _OffersAndDiscountsPageState extends State<OffersAndDiscountsPage> {
? GestureDetector( ? GestureDetector(
onTap: () { onTap: () {
_searchController.clear(); _searchController.clear();
// bookAppointmentsViewModel.filterClinics("");
offersAndDiscountVM.setSearchQuery(""); offersAndDiscountVM.setSearchQuery("");
textFocusNode.unfocus(); textFocusNode.unfocus();
}, },

@ -154,49 +154,36 @@ class _OffersAndDiscountsCarouselState extends State<OffersAndDiscountsCarousel>
shape: SmoothRectangleBorder( shape: SmoothRectangleBorder(
borderRadius: BorderRadius.circular(13.r), borderRadius: BorderRadius.circular(13.r),
smoothness: 0.6, smoothness: 0.6,
side: BorderSide( side: BorderSide(color: Color(0xff2E3039), width: 2.w),
color: Color(0xff2E3039),
width: 2.w,
),
), ),
), ),
child: ClipRRect( child: Padding(
borderRadius: BorderRadius.circular(13.r), padding: const EdgeInsets.all(2.0),
child: Container( child: Container(
decoration: BoxDecoration( decoration: ShapeDecoration(
border: Border.all(color: AppColors.textColor, width: 2.w), shape: SmoothRectangleBorder(
borderRadius: BorderRadius.circular(11.r), borderRadius: BorderRadius.circular(13.r),
), smoothness: 0.6,
child: Padding( side: BorderSide(color: AppColors.whiteColor, width: 2.w),
padding: const EdgeInsets.all(2.0), ),
child: ClipRRect( image: DecorationImage(image: NetworkImage(imageUrl))),
borderRadius: BorderRadius.circular(11.r),
child: imageUrl.isNotEmpty // child: imageUrl.isNotEmpty
? Utils.buildImgWithNetwork( // ? Utils.buildImgWithNetwork(
url: imageUrl, // url: imageUrl,
fit: BoxFit.cover, // fit: BoxFit.cover,
iconColor: AppColors.blackBgColor, // iconColor: AppColors.blackBgColor,
errorBuilder: (context, error, stackTrace) { // errorBuilder: (context, error, stackTrace) {
return Container( // return Container(
color: AppColors.greyColor, // color: AppColors.greyColor,
child: Icon( // child: Icon(Icons.image_not_supported, size: 24.h, color: AppColors.greyTextColor),
Icons.image_not_supported, // );
size: 24.h, // },
color: AppColors.greyTextColor, // )
), // : Container(
); // color: AppColors.greyColor,
}, // child: Icon(Icons.local_offer, size: 24.h, color: AppColors.greyTextColor),
) // ),
: Container(
color: AppColors.greyColor,
child: Icon(
Icons.local_offer,
size: 24.h,
color: AppColors.greyTextColor,
),
),
),
),
), ),
), ),
); );

Loading…
Cancel
Save