|
@@ -6,7 +6,8 @@ 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';
|
|
|
import 'package:widgets/my_button.dart';
|
|
|
import 'package:widgets/my_load_image.dart';
|
|
@@ -102,7 +103,7 @@ class AppliedErItem extends StatelessWidget {
|
|
|
// ),
|
|
|
//
|
|
|
// ],
|
|
|
- // ).marginOnly(top: 12),
|
|
|
+ // ).marginOnly(top:10),
|
|
|
// ),
|
|
|
|
|
|
// 服装大小
|
|
@@ -134,7 +135,7 @@ class AppliedErItem extends StatelessWidget {
|
|
|
onClick: onMemberAction,
|
|
|
).expanded(),
|
|
|
],
|
|
|
- ).marginOnly(top: 12),
|
|
|
+ ).marginOnly(top:10),
|
|
|
|
|
|
// 工作开始时间
|
|
|
Row(
|
|
@@ -157,7 +158,7 @@ class AppliedErItem extends StatelessWidget {
|
|
|
fontSize: 14,
|
|
|
).expanded(),
|
|
|
],
|
|
|
- ).marginOnly(top: 12),
|
|
|
+ ).marginOnly(top:10),
|
|
|
|
|
|
// 工作开始时间
|
|
|
Row(
|
|
@@ -180,7 +181,7 @@ class AppliedErItem extends StatelessWidget {
|
|
|
fontSize: 14,
|
|
|
).expanded(),
|
|
|
],
|
|
|
- ).marginOnly(top: 12),
|
|
|
+ ).marginOnly(top:10),
|
|
|
|
|
|
// 门卫签到时间
|
|
|
Row(
|
|
@@ -199,11 +200,20 @@ class AppliedErItem extends StatelessWidget {
|
|
|
item.securityIn?.time ?? "-",
|
|
|
marginLeft: 5,
|
|
|
isFontRegular: true,
|
|
|
- textColor: item.securityIn?.changed == 1 ? ColorConstants.textRedFF6262 : Colors.white,
|
|
|
+ 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(),
|
|
|
],
|
|
|
- ).marginOnly(top: 12),
|
|
|
+ ).marginOnly(top:10),
|
|
|
|
|
|
// 工作地签到时间
|
|
|
Row(
|
|
@@ -222,11 +232,20 @@ class AppliedErItem extends StatelessWidget {
|
|
|
item.workIn?.time ?? "-",
|
|
|
marginLeft: 5,
|
|
|
isFontRegular: true,
|
|
|
- textColor: item.workIn?.changed == 1 ? ColorConstants.textRedFF6262 : Colors.white,
|
|
|
+ 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(),
|
|
|
],
|
|
|
- ).marginOnly(top: 12),
|
|
|
+ ).marginOnly(top:10),
|
|
|
|
|
|
//工作结束时间
|
|
|
Row(
|
|
@@ -249,7 +268,7 @@ class AppliedErItem extends StatelessWidget {
|
|
|
fontSize: 14,
|
|
|
).expanded(),
|
|
|
],
|
|
|
- ).marginOnly(top: 12),
|
|
|
+ ).marginOnly(top:10),
|
|
|
|
|
|
// 工作地签出时间
|
|
|
Row(
|
|
@@ -268,11 +287,20 @@ class AppliedErItem extends StatelessWidget {
|
|
|
item.workOut?.time ?? "-",
|
|
|
marginLeft: 5,
|
|
|
isFontRegular: true,
|
|
|
- textColor: item.workOut?.changed == 1 ? ColorConstants.textRedFF6262 : Colors.white,
|
|
|
+ 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(),
|
|
|
],
|
|
|
- ).marginOnly(top: 12),
|
|
|
+ ).marginOnly(top:10),
|
|
|
|
|
|
// 门卫签出时间
|
|
|
Row(
|
|
@@ -291,11 +319,20 @@ class AppliedErItem extends StatelessWidget {
|
|
|
item.securityOut?.time ?? "-",
|
|
|
marginLeft: 5,
|
|
|
isFontRegular: true,
|
|
|
- textColor: item.securityOut?.changed == 1 ? ColorConstants.textRedFF6262 : Colors.white,
|
|
|
+ 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: 12),
|
|
|
+ ).marginOnly(top:10),
|
|
|
|
|
|
// + - Hours
|
|
|
Row(
|
|
@@ -318,7 +355,7 @@ class AppliedErItem extends StatelessWidget {
|
|
|
fontSize: 14,
|
|
|
).expanded(),
|
|
|
],
|
|
|
- ).marginOnly(top: 12),
|
|
|
+ ).marginOnly(top:10),
|
|
|
|
|
|
// Total Hours
|
|
|
Row(
|
|
@@ -341,7 +378,7 @@ class AppliedErItem extends StatelessWidget {
|
|
|
fontSize: 14,
|
|
|
).expanded(),
|
|
|
],
|
|
|
- ).marginOnly(top: 12),
|
|
|
+ ).marginOnly(top:10),
|
|
|
|
|
|
// // Total Rooms
|
|
|
// Visibility(
|
|
@@ -366,7 +403,7 @@ class AppliedErItem extends StatelessWidget {
|
|
|
// fontSize: 14,
|
|
|
// ).expanded(),
|
|
|
// ],
|
|
|
- // ).marginOnly(top: 12),
|
|
|
+ // ).marginOnly(top:10),
|
|
|
// ),
|
|
|
|
|
|
// // 申请时间
|
|
@@ -390,7 +427,7 @@ class AppliedErItem extends StatelessWidget {
|
|
|
// fontSize: 14,
|
|
|
// ).expanded(),
|
|
|
// ],
|
|
|
- // ).marginOnly(top: 12),
|
|
|
+ // ).marginOnly(top:10),
|
|
|
|
|
|
// 状态
|
|
|
Row(
|
|
@@ -419,7 +456,7 @@ class AppliedErItem extends StatelessWidget {
|
|
|
fontSize: 14,
|
|
|
).expanded(),
|
|
|
],
|
|
|
- ).marginOnly(top: 12),
|
|
|
+ ).marginOnly(top:10),
|
|
|
|
|
|
//按钮组
|
|
|
Visibility(
|