|
@@ -417,6 +417,7 @@ class LabourRequestItem extends StatelessWidget {
|
|
|
"#C009FC",
|
|
|
),
|
|
|
radius: 17.25,
|
|
|
+ padding: const EdgeInsets.symmetric(horizontal: 8),
|
|
|
minWidth: 60,
|
|
|
minHeight: 35,
|
|
|
).marginOnly(left: 12),
|
|
@@ -425,71 +426,83 @@ class LabourRequestItem extends StatelessWidget {
|
|
|
//详情按钮
|
|
|
Visibility(
|
|
|
visible: item.actionList?.contains("detail") ?? false,
|
|
|
- child: MyButton(
|
|
|
- onPressed: () {
|
|
|
- FocusScope.of(context).unfocus();
|
|
|
- onDetailAction?.call();
|
|
|
- },
|
|
|
- text: "Detail".tr,
|
|
|
- textColor: ColorConstants.white,
|
|
|
- backgroundColor: hexToColor(
|
|
|
- "#56AAFF",
|
|
|
- ),
|
|
|
- radius: 17.25,
|
|
|
- minWidth: 60,
|
|
|
- minHeight: 35,
|
|
|
- ).marginOnly(left: 12),
|
|
|
+ child: Flexible(
|
|
|
+ child: MyButton(
|
|
|
+ onPressed: () {
|
|
|
+ FocusScope.of(context).unfocus();
|
|
|
+ onDetailAction?.call();
|
|
|
+ },
|
|
|
+ text: "Detail".tr,
|
|
|
+ textColor: ColorConstants.white,
|
|
|
+ backgroundColor: hexToColor(
|
|
|
+ "#56AAFF",
|
|
|
+ ),
|
|
|
+ radius: 17.25,
|
|
|
+ padding: const EdgeInsets.symmetric(horizontal: 8),
|
|
|
+ minWidth: 60,
|
|
|
+ minHeight: 35,
|
|
|
+ ).marginOnly(left: 12),
|
|
|
+ ),
|
|
|
),
|
|
|
|
|
|
//Recall按钮
|
|
|
Visibility(
|
|
|
visible: item.actionList?.contains("recall") ?? false,
|
|
|
- child: MyButton(
|
|
|
- onPressed: () {
|
|
|
- FocusScope.of(context).unfocus();
|
|
|
- onRecallAction?.call();
|
|
|
- },
|
|
|
- text: "Recall".tr,
|
|
|
- textColor: ColorConstants.white,
|
|
|
- backgroundColor: hexToColor("#FFBB1B"),
|
|
|
- radius: 17.25,
|
|
|
- minWidth: 60,
|
|
|
- minHeight: 35,
|
|
|
- ).marginOnly(left: 12),
|
|
|
+ child: Flexible(
|
|
|
+ child: MyButton(
|
|
|
+ onPressed: () {
|
|
|
+ FocusScope.of(context).unfocus();
|
|
|
+ onRecallAction?.call();
|
|
|
+ },
|
|
|
+ text: "Recall".tr,
|
|
|
+ textColor: ColorConstants.white,
|
|
|
+ backgroundColor: hexToColor("#FFBB1B"),
|
|
|
+ radius: 17.25,
|
|
|
+ padding: const EdgeInsets.symmetric(horizontal: 8),
|
|
|
+ minWidth: 60,
|
|
|
+ minHeight: 35,
|
|
|
+ ).marginOnly(left: 12),
|
|
|
+ ),
|
|
|
),
|
|
|
|
|
|
//Edit按钮
|
|
|
Visibility(
|
|
|
visible: item.actionList?.contains("edit") ?? false,
|
|
|
- child: MyButton(
|
|
|
- onPressed: () {
|
|
|
- FocusScope.of(context).unfocus();
|
|
|
- onEditAction?.call();
|
|
|
- },
|
|
|
- text: "Edit".tr,
|
|
|
- textColor: ColorConstants.white,
|
|
|
- backgroundColor: hexToColor("#FFBB1B"),
|
|
|
- radius: 17.25,
|
|
|
- minWidth: 60,
|
|
|
- minHeight: 35,
|
|
|
- ).marginOnly(left: 12),
|
|
|
+ child: Flexible(
|
|
|
+ child: MyButton(
|
|
|
+ onPressed: () {
|
|
|
+ FocusScope.of(context).unfocus();
|
|
|
+ onEditAction?.call();
|
|
|
+ },
|
|
|
+ text: "Edit".tr,
|
|
|
+ textColor: ColorConstants.white,
|
|
|
+ backgroundColor: hexToColor("#FFBB1B"),
|
|
|
+ radius: 17.25,
|
|
|
+ padding: const EdgeInsets.symmetric(horizontal: 8),
|
|
|
+ minWidth: 60,
|
|
|
+ minHeight: 35,
|
|
|
+ ).marginOnly(left: 12),
|
|
|
+ ),
|
|
|
),
|
|
|
|
|
|
//状态工作流按钮
|
|
|
Visibility(
|
|
|
visible: item.actionList?.contains("status") ?? false,
|
|
|
- child: MyButton(
|
|
|
- onPressed: () {
|
|
|
- FocusScope.of(context).unfocus();
|
|
|
- onStatusAction?.call();
|
|
|
- },
|
|
|
- text: "Status".tr,
|
|
|
- textColor: ColorConstants.white,
|
|
|
- backgroundColor: hexToColor("#0AC074"),
|
|
|
- radius: 17.25,
|
|
|
- minWidth: 60,
|
|
|
- minHeight: 35,
|
|
|
- ).marginOnly(left: 12),
|
|
|
+ child: Flexible(
|
|
|
+ child: MyButton(
|
|
|
+ onPressed: () {
|
|
|
+ FocusScope.of(context).unfocus();
|
|
|
+ onStatusAction?.call();
|
|
|
+ },
|
|
|
+ text: "Status".tr,
|
|
|
+ textColor: ColorConstants.white,
|
|
|
+ backgroundColor: hexToColor("#0AC074"),
|
|
|
+ radius: 17.25,
|
|
|
+ padding: const EdgeInsets.symmetric(horizontal: 8),
|
|
|
+ minWidth: 60,
|
|
|
+ minHeight: 35,
|
|
|
+ ).marginOnly(left: 12),
|
|
|
+ ),
|
|
|
),
|
|
|
],
|
|
|
).marginOnly(top: 18, bottom: 2),
|