|
|
|
|
@ -28,59 +28,24 @@ class LabRadCard extends StatelessWidget {
|
|
|
|
|
AppState appState = getIt.get<AppState>();
|
|
|
|
|
return Container(
|
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(color: AppColors.whiteColor, borderRadius: 18.r, hasShadow: false),
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Utils.buildSvgWithAssets(
|
|
|
|
|
icon: icon,
|
|
|
|
|
width: 40.w,
|
|
|
|
|
height: 40.h,
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
).toShimmer2(isShow: false, radius: 12.r),
|
|
|
|
|
SizedBox(width: 8.w),
|
|
|
|
|
Flexible(
|
|
|
|
|
child: labelText.toText12(isBold: true, maxLine: 2),
|
|
|
|
|
),
|
|
|
|
|
Transform.flip(
|
|
|
|
|
flipX: appState.isArabic(),
|
|
|
|
|
child: Utils.buildSvgWithAssets(icon: AppAssets.forward_arrow_icon_small, width: 10.w, height: 10.h, fit: BoxFit.contain, iconColor: AppColors.textColor),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
Utils.buildSvgWithAssets(
|
|
|
|
|
icon: icon,
|
|
|
|
|
width: 40.w,
|
|
|
|
|
height: 40.h,
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
).toShimmer2(isShow: false, radius: 12.r),
|
|
|
|
|
SizedBox(width: 8.w),
|
|
|
|
|
Flexible(
|
|
|
|
|
child: labelText.toText12(isBold: true, maxLine: 2),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 12.w),
|
|
|
|
|
Transform.flip(
|
|
|
|
|
flipX: appState.isArabic(),
|
|
|
|
|
child: Utils.buildSvgWithAssets(icon: AppAssets.forward_arrow_icon_small, width: 10.w, height: 10.h, fit: BoxFit.contain, iconColor: AppColors.textColor),
|
|
|
|
|
),
|
|
|
|
|
// SizedBox(height: 16.h),
|
|
|
|
|
// labOrderTests.isNotEmpty
|
|
|
|
|
// ? ListView.separated(
|
|
|
|
|
// scrollDirection: Axis.vertical,
|
|
|
|
|
// padding: EdgeInsets.zero,
|
|
|
|
|
// physics: NeverScrollableScrollPhysics(),
|
|
|
|
|
// shrinkWrap: true,
|
|
|
|
|
// itemBuilder: (cxt, index) {
|
|
|
|
|
// return labOrderTests[index]
|
|
|
|
|
// .toText12(isBold: true, maxLine: 1)
|
|
|
|
|
// .toShimmer2(isShow: false, radius: 6.r, height: 24.h, width: 120.w)
|
|
|
|
|
// .toShimmer2(isShow: isLoading);
|
|
|
|
|
// },
|
|
|
|
|
// separatorBuilder: (cxt, index) => SizedBox(height: 8.h),
|
|
|
|
|
// itemCount: 3,
|
|
|
|
|
// )
|
|
|
|
|
// : "You don't have any records yet".needTranslation.toText13(
|
|
|
|
|
// color: AppColors.greyTextColor, isCenter: true),
|
|
|
|
|
// SizedBox(height: 16.h),
|
|
|
|
|
// Row(
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
// children: [
|
|
|
|
|
// SizedBox.shrink(),
|
|
|
|
|
// Transform.flip(
|
|
|
|
|
// flipX: appState.isArabic(),
|
|
|
|
|
// child: Utils.buildSvgWithAssets(
|
|
|
|
|
// icon: AppAssets.forward_arrow_icon_small, width: 15.w, height: 15.h, fit: BoxFit.contain, iconColor: AppColors.textColor)
|
|
|
|
|
// .toShimmer2(isShow: false, radius: 12.r),
|
|
|
|
|
// ),
|
|
|
|
|
// ],
|
|
|
|
|
// )
|
|
|
|
|
],
|
|
|
|
|
).paddingAll(12.w),
|
|
|
|
|
);
|
|
|
|
|
|