|
|
|
|
@ -30,10 +30,10 @@ class _RoomInspectionCardState extends State<RoomInspectionCard> {
|
|
|
|
|
return Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
widget.inspectionModel!.tabName!.bodyText(context).custom(color:AppColor.textColor(context), fontWeight: FontWeight.w600),
|
|
|
|
|
widget.inspectionModel!.tabName!.bodyText(context).custom(color: AppColor.textColor(context), fontWeight: FontWeight.w600),
|
|
|
|
|
8.height,
|
|
|
|
|
Container(
|
|
|
|
|
color: context.isDark?null: Colors.white10,
|
|
|
|
|
color: context.isDark ? null : Colors.white10,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: widget.inspectionModel!.planRecurrentMedicalTaskRoomTabAttributes?.asMap().entries.map<Widget>((entry) {
|
|
|
|
|
final model = entry.value;
|
|
|
|
|
@ -68,9 +68,9 @@ class _RoomInspectionCardState extends State<RoomInspectionCard> {
|
|
|
|
|
model.attribute?.name ?? '',
|
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
|
maxLines: 1,
|
|
|
|
|
style: AppTextStyles.bodyText2.copyWith(color: context.isDark?Colors.white:AppColor.white936),
|
|
|
|
|
style: AppTextStyles.bodyText2.copyWith(color: AppColor.labelTextStyleColor(context)),
|
|
|
|
|
),
|
|
|
|
|
(status ? 'Pass' : 'Fail').bodyText2(context).custom(color: AppColor.neutral120, fontWeight: FontWeight.w500),
|
|
|
|
|
(status ? 'Pass' : 'Fail').bodyText2(context).custom(color: AppColor.lightTextColor(context), fontWeight: FontWeight.w500),
|
|
|
|
|
],
|
|
|
|
|
).expanded,
|
|
|
|
|
GestureDetector(
|
|
|
|
|
@ -85,8 +85,9 @@ class _RoomInspectionCardState extends State<RoomInspectionCard> {
|
|
|
|
|
height: 30.toScreenHeight,
|
|
|
|
|
padding: EdgeInsetsDirectional.all(4.toScreenHeight),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
color: AppColor.fieldBgColor(context),
|
|
|
|
|
borderRadius: BorderRadius.circular(5),
|
|
|
|
|
color: AppColor.background(context),
|
|
|
|
|
borderRadius: BorderRadius.circular(6),
|
|
|
|
|
border: Border.all(color: AppColor.border2Color(context)),
|
|
|
|
|
),
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
@ -94,16 +95,24 @@ class _RoomInspectionCardState extends State<RoomInspectionCard> {
|
|
|
|
|
buildToggleOption(
|
|
|
|
|
label: "PASS",
|
|
|
|
|
isActive: status,
|
|
|
|
|
activeColor: AppColor.green20,
|
|
|
|
|
activeColor: AppColor.green70.withValues(alpha: .25),
|
|
|
|
|
inactiveColor: Colors.transparent,
|
|
|
|
|
textColor: status ? AppColor.green50 : context.isDark?Colors.white: AppColor.black20,
|
|
|
|
|
textColor: status
|
|
|
|
|
? AppColor.green70
|
|
|
|
|
: context.isDark
|
|
|
|
|
? Colors.white
|
|
|
|
|
: AppColor.black20,
|
|
|
|
|
),
|
|
|
|
|
buildToggleOption(
|
|
|
|
|
label: "FAIL",
|
|
|
|
|
isActive: !status,
|
|
|
|
|
activeColor: AppColor.red20,
|
|
|
|
|
activeColor: AppColor.red30.withValues(alpha: .25),
|
|
|
|
|
inactiveColor: Colors.transparent,
|
|
|
|
|
textColor: status ? context.isDark?Colors.white: AppColor.black20 : AppColor.red30,
|
|
|
|
|
textColor: status
|
|
|
|
|
? context.isDark
|
|
|
|
|
? Colors.white
|
|
|
|
|
: AppColor.black20
|
|
|
|
|
: AppColor.red30,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -190,7 +199,7 @@ class _RoomInspectionCardState extends State<RoomInspectionCard> {
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
model.attribute!.name!.bodyText2(context).custom(color: context.isDark?Colors.white:AppColor.white936, fontWeight: FontWeight.w500),
|
|
|
|
|
model.attribute!.name!.bodyText2(context).custom(color: context.isDark ? Colors.white : AppColor.white936, fontWeight: FontWeight.w500),
|
|
|
|
|
TextFormField(
|
|
|
|
|
keyboardType: TextInputType.number,
|
|
|
|
|
initialValue: model.attributeValue ?? '',
|
|
|
|
|
|