|
@@ -60,11 +60,11 @@ class _DialogAppliedButchModifyState extends State<DialogAppliedButchModify> {
|
|
|
children: [
|
|
|
//Title (如果使用 Container 为最外层容器则默认为 match_parent 的效果,除非我们限制宽度和最大高度最小高度)
|
|
|
Container(
|
|
|
- padding: EdgeInsets.symmetric(horizontal: 16.5),
|
|
|
+ padding: const EdgeInsets.symmetric(horizontal: 16.5),
|
|
|
width: double.infinity,
|
|
|
- decoration: BoxDecoration(
|
|
|
+ decoration: const BoxDecoration(
|
|
|
color: Colors.white,
|
|
|
- borderRadius: const BorderRadius.all(Radius.circular(15)),
|
|
|
+ borderRadius: BorderRadius.all(Radius.circular(15)),
|
|
|
),
|
|
|
child: Column(
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
@@ -89,12 +89,12 @@ class _DialogAppliedButchModifyState extends State<DialogAppliedButchModify> {
|
|
|
|
|
|
//选择时间
|
|
|
Container(
|
|
|
- padding: EdgeInsets.only(left: 16, right: 10),
|
|
|
- margin: EdgeInsets.only(top: 10),
|
|
|
+ padding: const EdgeInsets.only(left: 16, right: 10),
|
|
|
+ margin: const EdgeInsets.only(top: 10),
|
|
|
height: 45,
|
|
|
- decoration: BoxDecoration(
|
|
|
+ decoration: const BoxDecoration(
|
|
|
color: ColorConstants.grayECECEC,
|
|
|
- borderRadius: const BorderRadius.all(Radius.circular(5)),
|
|
|
+ borderRadius: BorderRadius.all(Radius.circular(5)),
|
|
|
),
|
|
|
child: Row(
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
@@ -109,7 +109,7 @@ class _DialogAppliedButchModifyState extends State<DialogAppliedButchModify> {
|
|
|
isFontMedium: true,
|
|
|
textColor: ColorConstants.black33,
|
|
|
).expanded(),
|
|
|
- MyAssetImage(Assets.baseServiceTriangleDropDownIcon, width: 11.5, height: 6.28),
|
|
|
+ const MyAssetImage(Assets.baseServiceTriangleDropDownIcon, width: 11.5, height: 6.28),
|
|
|
],
|
|
|
),
|
|
|
).onTap(() {
|
|
@@ -127,12 +127,12 @@ class _DialogAppliedButchModifyState extends State<DialogAppliedButchModify> {
|
|
|
|
|
|
//选择结束日期
|
|
|
Container(
|
|
|
- padding: EdgeInsets.only(left: 16, right: 10),
|
|
|
- margin: EdgeInsets.only(top: 10),
|
|
|
+ padding: const EdgeInsets.only(left: 16, right: 10),
|
|
|
+ margin: const EdgeInsets.only(top: 10),
|
|
|
height: 45,
|
|
|
- decoration: BoxDecoration(
|
|
|
+ decoration: const BoxDecoration(
|
|
|
color: ColorConstants.grayECECEC,
|
|
|
- borderRadius: const BorderRadius.all(Radius.circular(5)),
|
|
|
+ borderRadius: BorderRadius.all(Radius.circular(5)),
|
|
|
),
|
|
|
child: Row(
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
@@ -147,7 +147,7 @@ class _DialogAppliedButchModifyState extends State<DialogAppliedButchModify> {
|
|
|
isFontMedium: true,
|
|
|
textColor: ColorConstants.black33,
|
|
|
).expanded(),
|
|
|
- MyAssetImage(Assets.baseServiceTriangleDropDownIcon, width: 11.5, height: 6.28),
|
|
|
+ const MyAssetImage(Assets.baseServiceTriangleDropDownIcon, width: 11.5, height: 6.28),
|
|
|
],
|
|
|
),
|
|
|
).onTap(() {
|
|
@@ -169,25 +169,25 @@ class _DialogAppliedButchModifyState extends State<DialogAppliedButchModify> {
|
|
|
"hour",
|
|
|
"",
|
|
|
hintText: "Enter...".tr,
|
|
|
- hintStyle: TextStyle(
|
|
|
+ hintStyle: const TextStyle(
|
|
|
color: ColorConstants.gray88,
|
|
|
fontSize: 14,
|
|
|
fontWeight: FontWeight.w400,
|
|
|
),
|
|
|
controller: hourController,
|
|
|
focusNode: hourFocusNode,
|
|
|
- margin: EdgeInsets.only(left: 0, right: 0, top: 8),
|
|
|
+ margin: const EdgeInsets.only(left: 0, right: 0, top: 8),
|
|
|
showDivider: false,
|
|
|
fillBackgroundColor: ColorConstants.grayECECEC,
|
|
|
fillCornerRadius: 5,
|
|
|
- padding: EdgeInsets.only(left: 16, right: 16, top: 0, bottom: 0),
|
|
|
+ padding: const EdgeInsets.only(left: 16, right: 16, top: 0, bottom: 0),
|
|
|
height: 40,
|
|
|
- style: TextStyle(
|
|
|
+ style: const TextStyle(
|
|
|
color: ColorConstants.black33,
|
|
|
fontSize: 14,
|
|
|
fontWeight: FontWeight.w400,
|
|
|
),
|
|
|
- inputType: TextInputType.numberWithOptions(signed: false, decimal: true),
|
|
|
+ inputType: const TextInputType.numberWithOptions(decimal: true, signed: false),
|
|
|
textInputAction: TextInputAction.next,
|
|
|
enabled: true,
|
|
|
onSubmit: (key, value) {},
|
|
@@ -207,12 +207,12 @@ class _DialogAppliedButchModifyState extends State<DialogAppliedButchModify> {
|
|
|
),
|
|
|
|
|
|
Container(
|
|
|
- padding: EdgeInsets.only(left: 16, right: 10),
|
|
|
- margin: EdgeInsets.only(top: 10),
|
|
|
+ padding: const EdgeInsets.only(left: 16, right: 10),
|
|
|
+ margin: const EdgeInsets.only(top: 10),
|
|
|
height: 45,
|
|
|
- decoration: BoxDecoration(
|
|
|
+ decoration: const BoxDecoration(
|
|
|
color: ColorConstants.grayECECEC,
|
|
|
- borderRadius: const BorderRadius.all(Radius.circular(5)),
|
|
|
+ borderRadius: BorderRadius.all(Radius.circular(5)),
|
|
|
),
|
|
|
child: Row(
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
@@ -227,7 +227,7 @@ class _DialogAppliedButchModifyState extends State<DialogAppliedButchModify> {
|
|
|
isFontMedium: true,
|
|
|
textColor: ColorConstants.black33,
|
|
|
).expanded(),
|
|
|
- MyAssetImage(Assets.baseServiceTriangleDropDownIcon, width: 11.5, height: 6.28),
|
|
|
+ const MyAssetImage(Assets.baseServiceTriangleDropDownIcon, width: 11.5, height: 6.28),
|
|
|
],
|
|
|
),
|
|
|
).onTap(() {
|
|
@@ -236,8 +236,8 @@ class _DialogAppliedButchModifyState extends State<DialogAppliedButchModify> {
|
|
|
|
|
|
//分割线
|
|
|
Container(
|
|
|
- margin: EdgeInsets.only(top: 25),
|
|
|
- color: Color(0XFFCECECE),
|
|
|
+ margin: const EdgeInsets.only(top: 25),
|
|
|
+ color: const Color(0XFFCECECE),
|
|
|
height: 0.5,
|
|
|
),
|
|
|
Row(
|
|
@@ -253,13 +253,13 @@ class _DialogAppliedButchModifyState extends State<DialogAppliedButchModify> {
|
|
|
fontSize: 17.5,
|
|
|
isFontMedium: true,
|
|
|
textAlign: TextAlign.center,
|
|
|
- textColor: Color(0XFF0085C4),
|
|
|
+ textColor: const Color(0XFF0085C4),
|
|
|
cornerRadius: 3,
|
|
|
borderWidth: 1,
|
|
|
),
|
|
|
)),
|
|
|
Container(
|
|
|
- color: Color(0xff09141F).withOpacity(0.13),
|
|
|
+ color: const Color(0xff09141F).withOpacity(0.13),
|
|
|
width: 0.5,
|
|
|
),
|
|
|
Expanded(
|
|
@@ -276,7 +276,7 @@ class _DialogAppliedButchModifyState extends State<DialogAppliedButchModify> {
|
|
|
fontSize: 17.5,
|
|
|
isFontMedium: true,
|
|
|
textAlign: TextAlign.center,
|
|
|
- textColor: Color(0XFF0085C4),
|
|
|
+ textColor: const Color(0XFF0085C4),
|
|
|
cornerRadius: 3,
|
|
|
),
|
|
|
)),
|