|
|
|
@ -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(
|
|
|
|
|
|
|
|
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(
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.all(2.0),
|
|
|
|
padding: const EdgeInsets.all(2.0),
|
|
|
|
child: ClipRRect(
|
|
|
|
child: Container(
|
|
|
|
borderRadius: BorderRadius.circular(11.r),
|
|
|
|
decoration: ShapeDecoration(
|
|
|
|
child: imageUrl.isNotEmpty
|
|
|
|
shape: SmoothRectangleBorder(
|
|
|
|
? Utils.buildImgWithNetwork(
|
|
|
|
borderRadius: BorderRadius.circular(13.r),
|
|
|
|
url: imageUrl,
|
|
|
|
smoothness: 0.6,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
side: BorderSide(color: AppColors.whiteColor, width: 2.w),
|
|
|
|
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,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
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),
|
|
|
|
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|