|
@@ -89,60 +89,82 @@ class AppliedErItem extends StatelessWidget {
|
|
|
],
|
|
|
),
|
|
|
|
|
|
- //头像
|
|
|
- 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(
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- MyTextView(
|
|
|
- "${"Clothing Size".tr}:",
|
|
|
- isFontRegular: true,
|
|
|
- textColor: ColorConstants.textGrayAECAE5,
|
|
|
- fontSize: 14,
|
|
|
- ),
|
|
|
+ //头像
|
|
|
+ /* if (ConfigService.to.isTHOAType)*/ 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(right: 10).expanded(),
|
|
|
+
|
|
|
+
|
|
|
+ Column(
|
|
|
+ mainAxisSize: MainAxisSize.max,
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
+ children: [
|
|
|
+
|
|
|
+ MyTextView(
|
|
|
+ item.clothingSize ?? "-",
|
|
|
+ isFontMedium: true,
|
|
|
+ textColor: ColorConstants.textYellowFFBB1B,
|
|
|
+ fontSize: 14,
|
|
|
+ textDecoration: TextDecoration.underline,
|
|
|
+ decorationColor: ColorConstants.textYellowFFBB1B,
|
|
|
+ // 可选,设置下划线的颜色
|
|
|
+ decorationThickness: 2.0,
|
|
|
+ // 可选,设置下划线的粗细
|
|
|
+ decorationStyle: TextDecorationStyle.solid,
|
|
|
+ ),
|
|
|
+
|
|
|
+ Row(
|
|
|
+ mainAxisSize: MainAxisSize.min,
|
|
|
+ children: [
|
|
|
+ MyTextView(
|
|
|
+ "Status:".tr,
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: ColorConstants.textGrayAECAE5,
|
|
|
+ fontSize: 14,
|
|
|
+ ),
|
|
|
+
|
|
|
+ MyTextView(
|
|
|
+ item.statusShow ?? "-",
|
|
|
+ isFontRegular: true,
|
|
|
+ textColor: "Completed" == item.statusShow
|
|
|
+ ? ColorConstants.textGreen05DC82
|
|
|
+ : "Cancelled" == item.statusShow || "Rejected" == item.statusShow
|
|
|
+ ? ColorConstants.textRedFF6262
|
|
|
+ : "Revised" == item.statusShow || "Pending" == item.statusShow || "Approve" == item.statusShow
|
|
|
+ ? ColorConstants.textYellowFFBB1B
|
|
|
+ : ColorConstants.textBlue06D9FF, //默认蓝色
|
|
|
+ fontSize: 14,
|
|
|
+ )
|
|
|
+
|
|
|
+ ],
|
|
|
+ ).marginOnly(top: 5),
|
|
|
+
|
|
|
+ ],
|
|
|
+ ).expanded()
|
|
|
|
|
|
- //姓名
|
|
|
- MyTextView(
|
|
|
- item.clothingSize ?? "-",
|
|
|
- isFontMedium: true,
|
|
|
- textColor: ColorConstants.textYellowFFBB1B,
|
|
|
- fontSize: 14,
|
|
|
- marginLeft: 5,
|
|
|
- marginRight: 5,
|
|
|
- textDecoration: TextDecoration.underline,
|
|
|
- decorationColor: ColorConstants.textYellowFFBB1B,
|
|
|
- // 可选,设置下划线的颜色
|
|
|
- decorationThickness: 2.0,
|
|
|
- // 可选,设置下划线的粗细
|
|
|
- decorationStyle: TextDecorationStyle.solid,
|
|
|
- onClick: onMemberAction,
|
|
|
- ).expanded(),
|
|
|
],
|
|
|
).marginOnly(top: 10),
|
|
|
|
|
|
+
|
|
|
+
|
|
|
// 工作开始时间,结束时间
|
|
|
Row(
|
|
|
children: [
|
|
@@ -394,34 +416,6 @@ class AppliedErItem extends StatelessWidget {
|
|
|
],
|
|
|
).marginOnly(top: 10),
|
|
|
|
|
|
- // 状态
|
|
|
- Row(
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
- children: [
|
|
|
- MyTextView(
|
|
|
- "Status:".tr,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: ColorConstants.textGrayAECAE5,
|
|
|
- fontSize: 14,
|
|
|
- ),
|
|
|
-
|
|
|
- //发布状态
|
|
|
- MyTextView(
|
|
|
- item.statusShow ?? "-",
|
|
|
- marginLeft: 5,
|
|
|
- isFontRegular: true,
|
|
|
- textColor: "Completed" == item.statusShow
|
|
|
- ? ColorConstants.textGreen05DC82
|
|
|
- : "Cancelled" == item.statusShow || "Rejected" == item.statusShow
|
|
|
- ? ColorConstants.textRedFF6262
|
|
|
- : "Revised" == item.statusShow || "Pending" == item.statusShow || "Approve" == item.statusShow
|
|
|
- ? ColorConstants.textYellowFFBB1B
|
|
|
- : ColorConstants.textBlue06D9FF, //默认蓝色
|
|
|
- fontSize: 14,
|
|
|
- ).expanded(),
|
|
|
- ],
|
|
|
- ).marginOnly(top: 10),
|
|
|
|
|
|
//按钮组
|
|
|
Visibility(
|