|
|
|
|
@ -53,8 +53,8 @@ class SmallServiceCard extends StatelessWidget {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Container(
|
|
|
|
|
height: 92.h,
|
|
|
|
|
width: 92.w,
|
|
|
|
|
padding: EdgeInsets.all(6.0),
|
|
|
|
|
width: 92.h,
|
|
|
|
|
padding: EdgeInsets.all(4.0),
|
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
|
|
|
|
color: backgroundColor,
|
|
|
|
|
borderRadius: 16,
|
|
|
|
|
@ -64,8 +64,13 @@ class SmallServiceCard extends StatelessWidget {
|
|
|
|
|
children: [
|
|
|
|
|
Utils.buildSvgWithAssets(icon: icon, iconColor: iconColor, width: 32.h, height: 32.h),
|
|
|
|
|
SizedBox(height: 6.h),
|
|
|
|
|
title.tr(context: context).toText12(color: textColor, fontWeight: FontWeight.w500, isCenter: true),
|
|
|
|
|
subtitle.tr(context: context).toText12(color: textColor, fontWeight: FontWeight.w500, isCenter: true),
|
|
|
|
|
if (isFoldable || isTablet) ...[
|
|
|
|
|
title.tr(context: context).toText11(color: textColor, weight: FontWeight.w500, isCenter: true, letterSpacing: -0.2),
|
|
|
|
|
subtitle.tr(context: context).toText11(color: textColor, weight: FontWeight.w500, isCenter: true, letterSpacing: -0.2),
|
|
|
|
|
] else ...[
|
|
|
|
|
title.tr(context: context).toText12(color: textColor, fontWeight: FontWeight.w500, isCenter: true, letterSpacing: -0.2),
|
|
|
|
|
subtitle.tr(context: context).toText12(color: textColor, fontWeight: FontWeight.w500, isCenter: true, letterSpacing: -0.2),
|
|
|
|
|
]
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
).onPress(() {
|
|
|
|
|
|