|
@@ -6,6 +6,7 @@ import 'package:flutter/cupertino.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:flutter/widgets.dart';
|
|
|
import 'package:plugin_basic/basic_export.dart';
|
|
|
+import 'package:plugin_basic/service/app_config_service.dart';
|
|
|
import 'package:plugin_platform/engine/image/image_preview.dart';
|
|
|
import 'package:shared/utils/util.dart';
|
|
|
import 'package:widgets/ext/ex_widget.dart';
|
|
@@ -40,7 +41,7 @@ class AppliedErItem extends StatelessWidget {
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
return Container(
|
|
|
- padding: const EdgeInsets.symmetric(vertical: 23, horizontal: 21),
|
|
|
+ padding: const EdgeInsets.symmetric(vertical: 18, horizontal: 21),
|
|
|
margin: const EdgeInsets.only(left: 15, right: 15, top: 5, bottom: 5),
|
|
|
decoration: BoxDecoration(
|
|
|
color: const Color(0xFF4DCFF6).withOpacity(0.2), // 设置背景颜色和不透明度
|
|
@@ -89,22 +90,27 @@ class AppliedErItem extends StatelessWidget {
|
|
|
),
|
|
|
|
|
|
//头像
|
|
|
- // Visibility(
|
|
|
- // visible: ConfigService.to.isTHOAType,
|
|
|
- // child: Row(
|
|
|
- // mainAxisSize: MainAxisSize.max,
|
|
|
- // crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
- // children: [
|
|
|
- // MyTextView(
|
|
|
- // "Avatar:",
|
|
|
- // isFontRegular: true,
|
|
|
- // textColor: ColorConstants.textGrayAECAE5,
|
|
|
- // fontSize: 14,
|
|
|
- // ),
|
|
|
- //
|
|
|
- // ],
|
|
|
- // ).marginOnly(top:10),
|
|
|
- // ),
|
|
|
+ Visibility(
|
|
|
+ visible: ConfigService.to.isTHOAType,
|
|
|
+ child: Row(
|
|
|
+ mainAxisSize: MainAxisSize.max,
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ MyTextView(
|
|
|
+ "${"Avatar".tr}:",
|
|
|
+ isFontRegular: true,
|
|
|
+ marginRight: 10,
|
|
|
+ textColor: ColorConstants.textGrayAECAE5,
|
|
|
+ fontSize: 14,
|
|
|
+ ),
|
|
|
+ MyLoadImage(
|
|
|
+ item.avatar,
|
|
|
+ width: 50,
|
|
|
+ height: 50,
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ).marginOnly(top: 10),
|
|
|
+ ),
|
|
|
|
|
|
// 服装大小
|
|
|
Row(
|
|
@@ -135,299 +141,258 @@ class AppliedErItem extends StatelessWidget {
|
|
|
onClick: onMemberAction,
|
|
|
).expanded(),
|
|
|
],
|
|
|
- ).marginOnly(top:10),
|
|
|
+ ).marginOnly(top: 10),
|
|
|
|
|
|
- // 工作开始时间
|
|
|
+ // 工作开始时间,结束时间
|
|
|
Row(
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- MyTextView(
|
|
|
- "${"ID Card No.".tr}:",
|
|
|
- isFontRegular: true,
|
|
|
- textColor: ColorConstants.textGrayAECAE5,
|
|
|
- fontSize: 14,
|
|
|
- ),
|
|
|
-
|
|
|
- //时间
|
|
|
- MyTextView(
|
|
|
- item.labourerNric ?? "-",
|
|
|
- marginLeft: 5,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: Colors.white,
|
|
|
- fontSize: 14,
|
|
|
+ //开始时间
|
|
|
+ Row(
|
|
|
+ mainAxisSize: MainAxisSize.max,
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ MyTextView(
|
|
|
+ "Start Time:".tr,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: ColorConstants.textGrayAECAE5,
|
|
|
+ fontSize: 14,
|
|
|
+ ),
|
|
|
+
|
|
|
+ //时间
|
|
|
+ MyTextView(
|
|
|
+ item.startTime ?? "-",
|
|
|
+ marginLeft: 5,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: Colors.white,
|
|
|
+ fontSize: 14,
|
|
|
+ ).expanded(),
|
|
|
+ ],
|
|
|
).expanded(),
|
|
|
- ],
|
|
|
- ).marginOnly(top:10),
|
|
|
-
|
|
|
- // 工作开始时间
|
|
|
- Row(
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
- children: [
|
|
|
- MyTextView(
|
|
|
- "Start Time:".tr,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: ColorConstants.textGrayAECAE5,
|
|
|
- fontSize: 14,
|
|
|
- ),
|
|
|
|
|
|
- //时间
|
|
|
- MyTextView(
|
|
|
- item.startTime ?? "-",
|
|
|
- marginLeft: 5,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: Colors.white,
|
|
|
- fontSize: 14,
|
|
|
+ const SizedBox(width: 10),
|
|
|
+
|
|
|
+ //工作结束时间
|
|
|
+ Row(
|
|
|
+ mainAxisSize: MainAxisSize.max,
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ MyTextView(
|
|
|
+ "End Time:".tr,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: ColorConstants.textGrayAECAE5,
|
|
|
+ fontSize: 14,
|
|
|
+ ),
|
|
|
+
|
|
|
+ //时间
|
|
|
+ MyTextView(
|
|
|
+ item.endTime ?? "-",
|
|
|
+ marginLeft: 5,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: Colors.white,
|
|
|
+ fontSize: 14,
|
|
|
+ ).expanded(),
|
|
|
+ ],
|
|
|
).expanded(),
|
|
|
],
|
|
|
- ).marginOnly(top:10),
|
|
|
+ ).marginOnly(top: 10),
|
|
|
|
|
|
- // 门卫签到时间
|
|
|
+ //门卫签到
|
|
|
Row(
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- MyTextView(
|
|
|
- "Security In:".tr,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: ColorConstants.textGrayAECAE5,
|
|
|
- fontSize: 14,
|
|
|
- ),
|
|
|
-
|
|
|
- //时间
|
|
|
- MyTextView(
|
|
|
- item.securityIn?.time ?? "-",
|
|
|
- marginLeft: 5,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: item.securityIn?.changed == 1 ? ColorConstants.textRedFF6262 : ColorConstants.textGreen0AC074,
|
|
|
- fontSize: 14,
|
|
|
- onClick: (){
|
|
|
- if (Utils.isNotEmpty(item.securityIn?.image)){
|
|
|
- ImagePreviewEngine.singleImagePreview(context, item.securityIn!.image!);
|
|
|
- }
|
|
|
- },
|
|
|
- textDecoration: Utils.isNotEmpty(item.securityIn?.image) ? TextDecoration.underline : TextDecoration.none,
|
|
|
- decorationColor: ColorConstants.textGreen0AC074,
|
|
|
- decorationThickness: 2.0,
|
|
|
- decorationStyle: TextDecorationStyle.solid,
|
|
|
+ // 门卫签到时间
|
|
|
+ Row(
|
|
|
+ mainAxisSize: MainAxisSize.max,
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ MyTextView(
|
|
|
+ "Security In:".tr,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: ColorConstants.textGrayAECAE5,
|
|
|
+ fontSize: 14,
|
|
|
+ ),
|
|
|
+
|
|
|
+ //时间
|
|
|
+ MyTextView(
|
|
|
+ item.securityIn?.time ?? "-",
|
|
|
+ marginLeft: 5,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: item.securityIn?.changed == 1 ? ColorConstants.textRedFF6262 : ColorConstants.textGreen0AC074,
|
|
|
+ fontSize: 14,
|
|
|
+ onClick: () {
|
|
|
+ if (Utils.isNotEmpty(item.securityIn?.image)) {
|
|
|
+ ImagePreviewEngine.singleImagePreview(context, item.securityIn!.image!);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ textDecoration: Utils.isNotEmpty(item.securityIn?.image) ? TextDecoration.underline : TextDecoration.none,
|
|
|
+ decorationColor: ColorConstants.textGreen0AC074,
|
|
|
+ decorationThickness: 2.0,
|
|
|
+ decorationStyle: TextDecorationStyle.solid,
|
|
|
+ ).expanded(),
|
|
|
+ ],
|
|
|
).expanded(),
|
|
|
- ],
|
|
|
- ).marginOnly(top:10),
|
|
|
-
|
|
|
- // 工作地签到时间
|
|
|
- Row(
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
- children: [
|
|
|
- MyTextView(
|
|
|
- "Work In:".tr,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: ColorConstants.textGrayAECAE5,
|
|
|
- fontSize: 14,
|
|
|
- ),
|
|
|
|
|
|
- //时间
|
|
|
- MyTextView(
|
|
|
- item.workIn?.time ?? "-",
|
|
|
- marginLeft: 5,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: item.workIn?.changed == 1 ? ColorConstants.textRedFF6262 : ColorConstants.textGreen0AC074,
|
|
|
- fontSize: 14,
|
|
|
- onClick: (){
|
|
|
- if (Utils.isNotEmpty(item.workIn?.image)){
|
|
|
- ImagePreviewEngine.singleImagePreview(context, item.workIn!.image!);
|
|
|
- }
|
|
|
- },
|
|
|
- textDecoration: Utils.isNotEmpty(item.workIn?.image) ? TextDecoration.underline : TextDecoration.none,
|
|
|
- decorationColor: ColorConstants.textGreen0AC074,
|
|
|
- decorationThickness: 2.0,
|
|
|
- decorationStyle: TextDecorationStyle.solid,
|
|
|
+ const SizedBox(width: 10),
|
|
|
+
|
|
|
+ // 门卫签出时间
|
|
|
+ Row(
|
|
|
+ mainAxisSize: MainAxisSize.max,
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ MyTextView(
|
|
|
+ "Security Out:".tr,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: ColorConstants.textGrayAECAE5,
|
|
|
+ fontSize: 14,
|
|
|
+ ),
|
|
|
+
|
|
|
+ //时间
|
|
|
+ MyTextView(
|
|
|
+ item.securityOut?.time ?? "-",
|
|
|
+ marginLeft: 5,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: item.securityOut?.changed == 1 ? ColorConstants.textRedFF6262 : ColorConstants.textYellowF8AE00,
|
|
|
+ fontSize: 14,
|
|
|
+ onClick: () {
|
|
|
+ if (Utils.isNotEmpty(item.securityOut?.image)) {
|
|
|
+ ImagePreviewEngine.singleImagePreview(context, item.securityOut!.image!);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ textDecoration: Utils.isNotEmpty(item.securityOut?.image) ? TextDecoration.underline : TextDecoration.none,
|
|
|
+ decorationColor: ColorConstants.textYellowF8AE00,
|
|
|
+ decorationThickness: 2.0,
|
|
|
+ decorationStyle: TextDecorationStyle.solid,
|
|
|
+ ).expanded(),
|
|
|
+ ],
|
|
|
).expanded(),
|
|
|
],
|
|
|
- ).marginOnly(top:10),
|
|
|
+ ).marginOnly(top: 10),
|
|
|
|
|
|
- //工作结束时间
|
|
|
+ //工作地签到
|
|
|
Row(
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- MyTextView(
|
|
|
- "End Time:".tr,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: ColorConstants.textGrayAECAE5,
|
|
|
- fontSize: 14,
|
|
|
- ),
|
|
|
-
|
|
|
- //时间
|
|
|
- MyTextView(
|
|
|
- item.endTime ?? "-",
|
|
|
- marginLeft: 5,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: Colors.white,
|
|
|
- fontSize: 14,
|
|
|
+ // 工作地签到时间
|
|
|
+ Row(
|
|
|
+ mainAxisSize: MainAxisSize.max,
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ MyTextView(
|
|
|
+ "Work In:".tr,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: ColorConstants.textGrayAECAE5,
|
|
|
+ fontSize: 14,
|
|
|
+ ),
|
|
|
+
|
|
|
+ //时间
|
|
|
+ MyTextView(
|
|
|
+ item.workIn?.time ?? "-",
|
|
|
+ marginLeft: 5,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: item.workIn?.changed == 1 ? ColorConstants.textRedFF6262 : ColorConstants.textGreen0AC074,
|
|
|
+ fontSize: 14,
|
|
|
+ onClick: () {
|
|
|
+ if (Utils.isNotEmpty(item.workIn?.image)) {
|
|
|
+ ImagePreviewEngine.singleImagePreview(context, item.workIn!.image!);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ textDecoration: Utils.isNotEmpty(item.workIn?.image) ? TextDecoration.underline : TextDecoration.none,
|
|
|
+ decorationColor: ColorConstants.textGreen0AC074,
|
|
|
+ decorationThickness: 2.0,
|
|
|
+ decorationStyle: TextDecorationStyle.solid,
|
|
|
+ ).expanded(),
|
|
|
+ ],
|
|
|
).expanded(),
|
|
|
- ],
|
|
|
- ).marginOnly(top:10),
|
|
|
-
|
|
|
- // 工作地签出时间
|
|
|
- Row(
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
- children: [
|
|
|
- MyTextView(
|
|
|
- "Work Out:".tr,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: ColorConstants.textGrayAECAE5,
|
|
|
- fontSize: 14,
|
|
|
- ),
|
|
|
|
|
|
- //时间
|
|
|
- MyTextView(
|
|
|
- item.workOut?.time ?? "-",
|
|
|
- marginLeft: 5,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: item.workOut?.changed == 1 ? ColorConstants.textRedFF6262 : ColorConstants.textYellowF8AE00,
|
|
|
- fontSize: 14,
|
|
|
- onClick: (){
|
|
|
- if (Utils.isNotEmpty(item.workOut?.image)){
|
|
|
- ImagePreviewEngine.singleImagePreview(context, item.workOut!.image!);
|
|
|
- }
|
|
|
- },
|
|
|
- textDecoration: Utils.isNotEmpty(item.workOut?.image) ? TextDecoration.underline : TextDecoration.none,
|
|
|
- decorationColor: ColorConstants.textYellowF8AE00,
|
|
|
- decorationThickness: 2.0,
|
|
|
- decorationStyle: TextDecorationStyle.solid,
|
|
|
+ const SizedBox(width: 10),
|
|
|
+
|
|
|
+ // 工作地签出时间
|
|
|
+ Row(
|
|
|
+ mainAxisSize: MainAxisSize.max,
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ MyTextView(
|
|
|
+ "Work Out:".tr,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: ColorConstants.textGrayAECAE5,
|
|
|
+ fontSize: 14,
|
|
|
+ ),
|
|
|
+
|
|
|
+ //时间
|
|
|
+ MyTextView(
|
|
|
+ item.workOut?.time ?? "-",
|
|
|
+ marginLeft: 5,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: item.workOut?.changed == 1 ? ColorConstants.textRedFF6262 : ColorConstants.textYellowF8AE00,
|
|
|
+ fontSize: 14,
|
|
|
+ onClick: () {
|
|
|
+ if (Utils.isNotEmpty(item.workOut?.image)) {
|
|
|
+ ImagePreviewEngine.singleImagePreview(context, item.workOut!.image!);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ textDecoration: Utils.isNotEmpty(item.workOut?.image) ? TextDecoration.underline : TextDecoration.none,
|
|
|
+ decorationColor: ColorConstants.textYellowF8AE00,
|
|
|
+ decorationThickness: 2.0,
|
|
|
+ decorationStyle: TextDecorationStyle.solid,
|
|
|
+ ).expanded(),
|
|
|
+ ],
|
|
|
).expanded(),
|
|
|
- ],
|
|
|
- ).marginOnly(top:10),
|
|
|
-
|
|
|
- // 门卫签出时间
|
|
|
- Row(
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
- children: [
|
|
|
- MyTextView(
|
|
|
- "Security Out:".tr,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: ColorConstants.textGrayAECAE5,
|
|
|
- fontSize: 14,
|
|
|
- ),
|
|
|
|
|
|
- //时间
|
|
|
- MyTextView(
|
|
|
- item.securityOut?.time ?? "-",
|
|
|
- marginLeft: 5,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: item.securityOut?.changed == 1 ? ColorConstants.textRedFF6262 : ColorConstants.textYellowF8AE00,
|
|
|
- fontSize: 14,
|
|
|
- onClick: (){
|
|
|
- if (Utils.isNotEmpty(item.securityOut?.image)){
|
|
|
- ImagePreviewEngine.singleImagePreview(context, item.securityOut!.image!);
|
|
|
- }
|
|
|
- },
|
|
|
- textDecoration: Utils.isNotEmpty(item.securityOut?.image) ? TextDecoration.underline : TextDecoration.none,
|
|
|
- decorationColor: ColorConstants.textYellowF8AE00,
|
|
|
- decorationThickness: 2.0,
|
|
|
- decorationStyle: TextDecorationStyle.solid,
|
|
|
- ).expanded(),
|
|
|
],
|
|
|
- ).marginOnly(top:10),
|
|
|
+ ).marginOnly(top: 10),
|
|
|
|
|
|
- // + - Hours
|
|
|
+ //工作时长
|
|
|
Row(
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- MyTextView(
|
|
|
- "+/- Hours:".tr,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: ColorConstants.textGrayAECAE5,
|
|
|
- fontSize: 14,
|
|
|
- ),
|
|
|
|
|
|
- //小时
|
|
|
- MyTextView(
|
|
|
- item.adjustHours ?? "0",
|
|
|
- marginLeft: 5,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: Colors.white,
|
|
|
- fontSize: 14,
|
|
|
+ // + - Hours
|
|
|
+ Row(
|
|
|
+ mainAxisSize: MainAxisSize.max,
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ MyTextView(
|
|
|
+ "+/- Hours:".tr,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: ColorConstants.textGrayAECAE5,
|
|
|
+ fontSize: 14,
|
|
|
+ ),
|
|
|
+
|
|
|
+ //小时
|
|
|
+ MyTextView(
|
|
|
+ item.adjustHours ?? "0",
|
|
|
+ marginLeft: 5,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: Colors.white,
|
|
|
+ fontSize: 14,
|
|
|
+ ).expanded(),
|
|
|
+ ],
|
|
|
).expanded(),
|
|
|
- ],
|
|
|
- ).marginOnly(top:10),
|
|
|
-
|
|
|
- // Total Hours
|
|
|
- Row(
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
- children: [
|
|
|
- MyTextView(
|
|
|
- "Total Hours:".tr,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: ColorConstants.textGrayAECAE5,
|
|
|
- fontSize: 14,
|
|
|
- ),
|
|
|
|
|
|
- //小时
|
|
|
- MyTextView(
|
|
|
- item.totalHours ?? "0",
|
|
|
- marginLeft: 5,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: Colors.white,
|
|
|
- fontSize: 14,
|
|
|
+ const SizedBox(width: 10),
|
|
|
+
|
|
|
+ // Total Hours
|
|
|
+ Row(
|
|
|
+ mainAxisSize: MainAxisSize.max,
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ MyTextView(
|
|
|
+ "Total Hours:".tr,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: ColorConstants.textGrayAECAE5,
|
|
|
+ fontSize: 14,
|
|
|
+ ),
|
|
|
+
|
|
|
+ //小时
|
|
|
+ MyTextView(
|
|
|
+ item.totalHours ?? "0",
|
|
|
+ marginLeft: 5,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: Colors.white,
|
|
|
+ fontSize: 14,
|
|
|
+ ).expanded(),
|
|
|
+ ],
|
|
|
).expanded(),
|
|
|
+
|
|
|
],
|
|
|
- ).marginOnly(top:10),
|
|
|
-
|
|
|
- // // Total Rooms
|
|
|
- // Visibility(
|
|
|
- // visible: jobInfo?.jobUnit != "hour",
|
|
|
- // child: Row(
|
|
|
- // mainAxisSize: MainAxisSize.max,
|
|
|
- // crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
- // children: [
|
|
|
- // MyTextView(
|
|
|
- // "Total Rooms:".tr,
|
|
|
- // isFontRegular: true,
|
|
|
- // textColor: ColorConstants.textGrayAECAE5,
|
|
|
- // fontSize: 14,
|
|
|
- // ),
|
|
|
- //
|
|
|
- // //小时
|
|
|
- // MyTextView(
|
|
|
- // item.totalRooms.toString(),
|
|
|
- // marginLeft: 5,
|
|
|
- // isFontRegular: true,
|
|
|
- // textColor: Colors.white,
|
|
|
- // fontSize: 14,
|
|
|
- // ).expanded(),
|
|
|
- // ],
|
|
|
- // ).marginOnly(top:10),
|
|
|
- // ),
|
|
|
-
|
|
|
- // // 申请时间
|
|
|
- // Row(
|
|
|
- // mainAxisSize: MainAxisSize.max,
|
|
|
- // crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
- // children: [
|
|
|
- // MyTextView(
|
|
|
- // "Applied At:".tr,
|
|
|
- // isFontRegular: true,
|
|
|
- // textColor: ColorConstants.textGrayAECAE5,
|
|
|
- // fontSize: 14,
|
|
|
- // ),
|
|
|
- //
|
|
|
- // //发布状态
|
|
|
- // MyTextView(
|
|
|
- // item.appliedAt ?? "-",
|
|
|
- // marginLeft: 5,
|
|
|
- // isFontRegular: true,
|
|
|
- // textColor: Colors.white,
|
|
|
- // fontSize: 14,
|
|
|
- // ).expanded(),
|
|
|
- // ],
|
|
|
- // ).marginOnly(top:10),
|
|
|
+ ).marginOnly(top: 10),
|
|
|
|
|
|
// 状态
|
|
|
Row(
|
|
@@ -456,7 +421,7 @@ class AppliedErItem extends StatelessWidget {
|
|
|
fontSize: 14,
|
|
|
).expanded(),
|
|
|
],
|
|
|
- ).marginOnly(top:10),
|
|
|
+ ).marginOnly(top: 10),
|
|
|
|
|
|
//按钮组
|
|
|
Visibility(
|