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(
onTap: () {
_searchController.clear();
// bookAppointmentsViewModel.filterClinics("");
offersAndDiscountVM.setSearchQuery("");
textFocusNode.unfocus();
},

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

Loading…
Cancel
Save