|
|
|
|
@ -16,7 +16,7 @@ class LargeServiceCard extends StatelessWidget {
|
|
|
|
|
final String title;
|
|
|
|
|
final String subtitle;
|
|
|
|
|
|
|
|
|
|
LargeServiceCard({
|
|
|
|
|
const LargeServiceCard({
|
|
|
|
|
super.key,
|
|
|
|
|
this.image = "",
|
|
|
|
|
this.icon = "",
|
|
|
|
|
@ -27,49 +27,38 @@ class LargeServiceCard extends StatelessWidget {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 3.h),
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 3.w),
|
|
|
|
|
child: Container(
|
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
|
|
|
|
color: Colors.transparent,
|
|
|
|
|
borderRadius: 16,
|
|
|
|
|
),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 0.h),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(AppAssets.livecare_service, width: 220.h, height: 220.h, fit: BoxFit.contain),
|
|
|
|
|
SizedBox(height: 3.h),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Utils.buildSvgWithAssets(icon: icon, width: 24.h, height: 24.h),
|
|
|
|
|
title.toText14(color: AppColors.blackColor, isBold: true),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 220.h, child: subtitle.toText11(color: AppColors.blackColor)),
|
|
|
|
|
SizedBox(height: 6.h),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 220.h,
|
|
|
|
|
child: CustomButton(
|
|
|
|
|
text: LocaleKeys.bookNow.tr(context: context),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
// Navigator.of(context).pushReplacement(
|
|
|
|
|
// MaterialPageRoute(builder: (BuildContext context) => LandingPage()),
|
|
|
|
|
// );
|
|
|
|
|
},
|
|
|
|
|
backgroundColor: AppColors.borderOnlyColor,
|
|
|
|
|
borderColor: AppColors.borderOnlyColor,
|
|
|
|
|
textColor: AppColors.whiteColor,
|
|
|
|
|
fontSize: 14,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
borderRadius: 12,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
height: 40.h,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
width: 150.w,
|
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(color: Colors.transparent, borderRadius: 16.r),
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(AppAssets.livecare_service, width: 220.w, height: 220.h, fit: BoxFit.contain),
|
|
|
|
|
SizedBox(height: 3.h),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Utils.buildSvgWithAssets(icon: icon, width: 24.w, height: 24.h),
|
|
|
|
|
title.toText14(color: AppColors.blackColor, isBold: true),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
subtitle.toText11(color: AppColors.blackColor),
|
|
|
|
|
SizedBox(height: 10.h),
|
|
|
|
|
CustomButton(
|
|
|
|
|
width: 150.w,
|
|
|
|
|
text: LocaleKeys.bookNow.tr(context: context),
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
backgroundColor: AppColors.borderOnlyColor,
|
|
|
|
|
borderColor: AppColors.borderOnlyColor,
|
|
|
|
|
textColor: AppColors.whiteColor,
|
|
|
|
|
fontSize: 14.f,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
borderRadius: 12.r,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10.w, 0, 10.w, 0),
|
|
|
|
|
height: 40.h,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|