|
@@ -435,72 +435,80 @@ class AppliedStaffItem extends StatelessWidget {
|
|
|
//编辑按钮
|
|
|
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,
|
|
|
+ minWidth: 60,
|
|
|
+ minHeight: 35,
|
|
|
+ ).marginOnly(left: 12),
|
|
|
+ ),
|
|
|
),
|
|
|
|
|
|
// revise 按钮
|
|
|
Visibility(
|
|
|
visible: item.actionList?.contains("revise") ?? false,
|
|
|
- child: MyButton(
|
|
|
- onPressed: () {
|
|
|
- FocusScope.of(context).unfocus();
|
|
|
- onReviseAction?.call();
|
|
|
- },
|
|
|
- text: "Revise".tr,
|
|
|
- textColor: ColorConstants.white,
|
|
|
- backgroundColor: hexToColor("#FFFFBB1B"),
|
|
|
- radius: 17.25,
|
|
|
- minWidth: 60,
|
|
|
- minHeight: 35,
|
|
|
- ).marginOnly(left: 12),
|
|
|
+ child: Flexible(
|
|
|
+ child: MyButton(
|
|
|
+ onPressed: () {
|
|
|
+ FocusScope.of(context).unfocus();
|
|
|
+ onReviseAction?.call();
|
|
|
+ },
|
|
|
+ text: "Revise".tr,
|
|
|
+ textColor: ColorConstants.white,
|
|
|
+ backgroundColor: hexToColor("#FFFFBB1B"),
|
|
|
+ radius: 17.25,
|
|
|
+ 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,
|
|
|
+ minWidth: 60,
|
|
|
+ minHeight: 35,
|
|
|
+ ).marginOnly(left: 12),
|
|
|
+ ),
|
|
|
),
|
|
|
|
|
|
//Remark按钮
|
|
|
Visibility(
|
|
|
visible: item.actionList?.contains("remarks") ?? false,
|
|
|
- child: MyButton(
|
|
|
- onPressed: () {
|
|
|
- FocusScope.of(context).unfocus();
|
|
|
- onRemarkAction?.call();
|
|
|
- },
|
|
|
- text: "Remarks".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();
|
|
|
+ onRemarkAction?.call();
|
|
|
+ },
|
|
|
+ text: "Remarks".tr,
|
|
|
+ textColor: ColorConstants.white,
|
|
|
+ backgroundColor: hexToColor("#56AAFF"),
|
|
|
+ radius: 17.25,
|
|
|
+ minWidth: 60,
|
|
|
+ minHeight: 35,
|
|
|
+ ).marginOnly(left: 12),
|
|
|
+ ),
|
|
|
),
|
|
|
],
|
|
|
).marginOnly(top: 15),
|