|
|
|
@ -876,25 +876,25 @@ class Utils {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static Widget getPaymentMethods() {
|
|
|
|
static Widget getPaymentMethods({num spacing = 3, num width = 35, num height = 35}) {
|
|
|
|
return Row(
|
|
|
|
return Row(
|
|
|
|
spacing: 6.w,
|
|
|
|
spacing: spacing.w,
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Image.asset(AppAssets.mada, width: 35.h, height: 35.h),
|
|
|
|
Image.asset(AppAssets.mada, width: width.h, height: height.h),
|
|
|
|
Image.asset(
|
|
|
|
Image.asset(
|
|
|
|
AppAssets.tamaraEng,
|
|
|
|
AppAssets.tamaraEng,
|
|
|
|
width: 35.h,
|
|
|
|
width: width.h,
|
|
|
|
height: 35.h,
|
|
|
|
height: height.h,
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
errorBuilder: (context, error, stackTrace) {
|
|
|
|
errorBuilder: (context, error, stackTrace) {
|
|
|
|
debugPrint('Failed to load Tamara PNG in payment methods: $error');
|
|
|
|
debugPrint('Failed to load Tamara PNG in payment methods: $error');
|
|
|
|
return Utils.buildSvgWithAssets(icon: AppAssets.tamara, width: 35.h, height: 35.h, fit: BoxFit.contain);
|
|
|
|
return Utils.buildSvgWithAssets(icon: AppAssets.tamara, width: 35.h, height: 35.h, fit: BoxFit.contain);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Image.asset(AppAssets.visa, width: 35.h, height: 35.h),
|
|
|
|
Image.asset(AppAssets.visa, width: width.h, height: height.h),
|
|
|
|
Image.asset(AppAssets.mastercard, width: 35.h, height: 25.h),
|
|
|
|
Image.asset(AppAssets.mastercard, width: width.h, height: height.h),
|
|
|
|
Image.asset(AppAssets.applePay, width: 35.h, height: 35.h),
|
|
|
|
Platform.isIOS ? Image.asset(AppAssets.applePay, width: width.h, height: height.h) : SizedBox.shrink(),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|