|
|
|
@ -59,7 +59,7 @@ class NearestERItem extends StatelessWidget {
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: (nearestERItem.projectName?.toText16(
|
|
|
|
child: (nearestERItem.projectName?.toText16(
|
|
|
|
color: AppColors.textColor,
|
|
|
|
color: AppColors.textColor,
|
|
|
|
weight: FontWeight.w600,
|
|
|
|
isBold: true
|
|
|
|
) ??
|
|
|
|
) ??
|
|
|
|
SizedBox.shrink()).toShimmer2(isShow: isLoading),
|
|
|
|
SizedBox.shrink()).toShimmer2(isShow: isLoading),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -84,7 +84,7 @@ class NearestERItem extends StatelessWidget {
|
|
|
|
Directionality(
|
|
|
|
Directionality(
|
|
|
|
textDirection: ui.TextDirection.ltr,
|
|
|
|
textDirection: ui.TextDirection.ltr,
|
|
|
|
child: AppCustomChipWidget(
|
|
|
|
child: AppCustomChipWidget(
|
|
|
|
labelText: "Expected waiting time: ${nearestERItem.getTime()} mins",
|
|
|
|
labelText: "${LocaleKeys.waitingTime.tr(context: context)} ${nearestERItem.getTime()} ${LocaleKeys.mins.tr(context: context)}",
|
|
|
|
icon: AppAssets.waiting_time_clock,
|
|
|
|
icon: AppAssets.waiting_time_clock,
|
|
|
|
iconHasColor: false,
|
|
|
|
iconHasColor: false,
|
|
|
|
labelPadding: EdgeInsetsDirectional.only(start: 4.h, end: 0.h),
|
|
|
|
labelPadding: EdgeInsetsDirectional.only(start: 4.h, end: 0.h),
|
|
|
|
@ -109,14 +109,14 @@ class NearestERItem extends StatelessWidget {
|
|
|
|
borderColor: AppColors.secondaryLightRedColor,
|
|
|
|
borderColor: AppColors.secondaryLightRedColor,
|
|
|
|
textColor: AppColors.primaryRedColor,
|
|
|
|
textColor: AppColors.primaryRedColor,
|
|
|
|
iconColor: AppColors.primaryRedColor,
|
|
|
|
iconColor: AppColors.primaryRedColor,
|
|
|
|
height: 40.h,
|
|
|
|
height: 46.h,
|
|
|
|
fontSize: 14.f,
|
|
|
|
fontSize: 14.f,
|
|
|
|
isBold: true,
|
|
|
|
isBold: true,
|
|
|
|
).toShimmer2(isShow: isLoading),
|
|
|
|
).toShimmer2(isShow: isLoading),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(width: 8.h),
|
|
|
|
SizedBox(width: 8.h),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 40.h,
|
|
|
|
height: 46.h,
|
|
|
|
width: 40.h,
|
|
|
|
width: 40.h,
|
|
|
|
child: CustomButton(
|
|
|
|
child: CustomButton(
|
|
|
|
text: '',
|
|
|
|
text: '',
|
|
|
|
@ -124,12 +124,11 @@ class NearestERItem extends StatelessWidget {
|
|
|
|
icon: AppAssets.call_fill,
|
|
|
|
icon: AppAssets.call_fill,
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
context.read<EmergencyServicesViewModel>().openDialer( nearestERItem.phonenumber??"");
|
|
|
|
context.read<EmergencyServicesViewModel>().openDialer( nearestERItem.phonenumber??"");
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
iconColor: AppColors.textColor,
|
|
|
|
iconColor: AppColors.textColor,
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
height: 40.h,
|
|
|
|
height: 46.h,
|
|
|
|
).toShimmer2(isShow: isLoading),
|
|
|
|
).toShimmer2(isShow: isLoading),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|