|
@@ -344,7 +344,7 @@ class _LabourRequestAddState extends BaseState<UKLabourRequestAddPage, LabourReq
|
|
//重复的日期区间
|
|
//重复的日期区间
|
|
Visibility(
|
|
Visibility(
|
|
visible: state.pageType == 0,
|
|
visible: state.pageType == 0,
|
|
- child: Container(
|
|
|
|
|
|
+ child: Container(
|
|
padding: const EdgeInsets.only(left: 16, right: 10, top: 5, bottom: 5),
|
|
padding: const EdgeInsets.only(left: 16, right: 10, top: 5, bottom: 5),
|
|
margin: const EdgeInsets.only(top: 10),
|
|
margin: const EdgeInsets.only(top: 10),
|
|
decoration: BoxDecoration(
|
|
decoration: BoxDecoration(
|
|
@@ -362,21 +362,35 @@ class _LabourRequestAddState extends BaseState<UKLabourRequestAddPage, LabourReq
|
|
spacing: 8.0, // 子组件之间的水平间距
|
|
spacing: 8.0, // 子组件之间的水平间距
|
|
runSpacing: 5.0, // 子组件之间的垂直间距
|
|
runSpacing: 5.0, // 子组件之间的垂直间距
|
|
children: state.repeatDateStr == null
|
|
children: state.repeatDateStr == null
|
|
- ? []
|
|
|
|
|
|
+ ? [
|
|
|
|
+ MyTextView(
|
|
|
|
+ "",
|
|
|
|
+ textColor: Colors.white,
|
|
|
|
+ isFontRegular: true,
|
|
|
|
+ fontSize: 14,
|
|
|
|
+ hint: "Choose Repeat Date".tr,
|
|
|
|
+ textHintColor: ColorConstants.textGrayAECAE5,
|
|
|
|
+ paddingTop: 5,
|
|
|
|
+ paddingBottom: 5,
|
|
|
|
+ paddingLeft: 7.5,
|
|
|
|
+ paddingRight: 7.5,
|
|
|
|
+ )
|
|
|
|
+ ]
|
|
: List.generate(state.repeatDateStr!.split(",").length, (index) {
|
|
: List.generate(state.repeatDateStr!.split(",").length, (index) {
|
|
- return MyTextView(
|
|
|
|
- state.repeatDateStr!.split(",")[index],
|
|
|
|
- textColor: Colors.white,
|
|
|
|
- isFontRegular: true,
|
|
|
|
- fontSize: 14,
|
|
|
|
- backgroundColor: ColorConstants.string2Color('#0AC074'),
|
|
|
|
- paddingTop: 5,
|
|
|
|
- paddingBottom: 5,
|
|
|
|
- paddingLeft: 7.5,
|
|
|
|
- paddingRight: 7.5,
|
|
|
|
- cornerRadius: 5.0,
|
|
|
|
- );
|
|
|
|
- }),
|
|
|
|
|
|
+ return MyTextView(
|
|
|
|
+ state.repeatDateStr!.split(",")[index],
|
|
|
|
+ textColor: Colors.white,
|
|
|
|
+ isFontRegular: true,
|
|
|
|
+ fontSize: 14,
|
|
|
|
+ hint: "Choose Repeat Date".tr,
|
|
|
|
+ backgroundColor: ColorConstants.string2Color('#0AC074'),
|
|
|
|
+ paddingTop: 5,
|
|
|
|
+ paddingBottom: 5,
|
|
|
|
+ paddingLeft: 7.5,
|
|
|
|
+ paddingRight: 7.5,
|
|
|
|
+ cornerRadius: 5.0,
|
|
|
|
+ );
|
|
|
|
+ }),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
|
|
|