Commit 7b11d6339f2dfab7de63a0fc6501257054e7be6b

Authored by weixin_45529955
1 parent af744dc7

宴会新建页面性别不可点击,升级dart3.0遗留问题,类型报错

@@ -3404,43 +3404,43 @@ class NotebookDetailPageState extends State<NotebookDetailPage> @@ -3404,43 +3404,43 @@ class NotebookDetailPageState extends State<NotebookDetailPage>
3404 ) 3404 )
3405 ]), 3405 ]),
3406 3406
3407 - TitleAndBtn(  
3408 - title: "赠券对象",  
3409 - content: couponType,  
3410 - // list: personNumList,  
3411 - detailModel: model,  
3412 - callback: () {  
3413 - FocusScope.of(context)  
3414 - .requestFocus(  
3415 - FocusNode()); //隐藏键盘  
3416 - // 存储  
3417 -  
3418 - DialogUtil.showSelectCusmanDialog(  
3419 - context,  
3420 - couponTypes,  
3421 - title: '赠送优惠券给',  
3422 - (value) async {  
3423 - if (value != null) {  
3424 - int couponSelectIndex =  
3425 - value.first;  
3426 - couponType = couponTypes[  
3427 - couponSelectIndex];  
3428 -  
3429 - setState(() {});  
3430 - }  
3431 - },  
3432 - selecteds: couponTypes  
3433 - .indexOf(  
3434 - couponType) ==  
3435 - -1  
3436 - ? []  
3437 - : [  
3438 - couponTypes  
3439 - .indexOf(  
3440 - couponType)  
3441 - ])  
3442 - .then((value) {});  
3443 - }), 3407 + // TitleAndBtn(
  3408 + // title: "赠券对象",
  3409 + // content: couponType,
  3410 + // // list: personNumList,
  3411 + // detailModel: model,
  3412 + // callback: () {
  3413 + // FocusScope.of(context)
  3414 + // .requestFocus(
  3415 + // FocusNode()); //隐藏键盘
  3416 + // // 存储
  3417 +
  3418 + // DialogUtil.showSelectCusmanDialog(
  3419 + // context,
  3420 + // couponTypes,
  3421 + // title: '赠送优惠券给',
  3422 + // (value) async {
  3423 + // if (value != null) {
  3424 + // int couponSelectIndex =
  3425 + // value.first;
  3426 + // couponType = couponTypes[
  3427 + // couponSelectIndex];
  3428 +
  3429 + // setState(() {});
  3430 + // }
  3431 + // },
  3432 + // selecteds: couponTypes
  3433 + // .indexOf(
  3434 + // couponType) ==
  3435 + // -1
  3436 + // ? []
  3437 + // : [
  3438 + // couponTypes
  3439 + // .indexOf(
  3440 + // couponType)
  3441 + // ])
  3442 + // .then((value) {});
  3443 + // }),
3444 3444
3445 // ), 3445 // ),
3446 // Offstage( 3446 // Offstage(
@@ -906,8 +906,8 @@ class _FeastCreatePageState extends State<FeastCreatePage> { @@ -906,8 +906,8 @@ class _FeastCreatePageState extends State<FeastCreatePage> {
906 onTap: () { 906 onTap: () {
907 FocusScope.of(context).requestFocus(FocusNode()); //隐藏键盘 907 FocusScope.of(context).requestFocus(FocusNode()); //隐藏键盘
908 List<String?> list = []; 908 List<String?> list = [];
909 - for (Map item  
910 - in sexList as Iterable<Map<dynamic, dynamic>>) { 909 + for (dynamic item
  910 + in sexList) {
911 list.add(item['title']); 911 list.add(item['title']);
912 } 912 }
913 if (list.length == 0) { 913 if (list.length == 0) {
@@ -3073,7 +3073,7 @@ class InvicationPageState extends State<InvicationPage> @@ -3073,7 +3073,7 @@ class InvicationPageState extends State<InvicationPage>
3073 Expanded( 3073 Expanded(
3074 child: Text( 3074 child: Text(
3075 reserveType!, 3075 reserveType!,
3076 - textAlign: TextAlign.center, 3076 + textAlign: TextAlign.right,
3077 style: TextStyle( 3077 style: TextStyle(
3078 color: reserveType == '请选择' 3078 color: reserveType == '请选择'
3079 ? MyColours.color_999999 3079 ? MyColours.color_999999
@@ -3089,64 +3089,64 @@ class InvicationPageState extends State<InvicationPage> @@ -3089,64 +3089,64 @@ class InvicationPageState extends State<InvicationPage>
3089 )) 3089 ))
3090 ], 3090 ],
3091 )), 3091 )),
3092 - HEmptyView(20),  
3093 - Expanded(  
3094 - child: Row(  
3095 - // mainAxisAlignment: MainAxisAlignment.spaceBetween,  
3096 - crossAxisAlignment: CrossAxisAlignment.center,  
3097 - children: [  
3098 - Text("赠券对象:",  
3099 - style: TextStyle(  
3100 - color: MyColours.color_515151,  
3101 - fontSize: ScreenUtil().setSp(28))),  
3102 - Expanded(  
3103 - child: InkWell(  
3104 - onTap: () {  
3105 - FocusScope.of(context)  
3106 - .requestFocus(FocusNode()); //隐藏键盘  
3107 - // 存储  
3108 -  
3109 - DialogUtil.showSelectCusmanDialog(  
3110 - context, couponTypes,  
3111 - title: '赠送优惠券给', (value) async {  
3112 - if (value != null) {  
3113 - int couponSelectIndex = value.first;  
3114 - couponType =  
3115 - couponTypes[couponSelectIndex];  
3116 -  
3117 - setState(() {});  
3118 - }  
3119 - },  
3120 - selecteds: couponTypes  
3121 - .indexOf(couponType) ==  
3122 - -1  
3123 - ? []  
3124 - : [  
3125 - couponTypes  
3126 - .indexOf(couponType)  
3127 - ])  
3128 - .then((value) {});  
3129 - },  
3130 - child: Row(children: [  
3131 - Expanded(  
3132 - child: Text(  
3133 - couponType,  
3134 - textAlign: TextAlign.center,  
3135 - style: TextStyle(  
3136 - color: couponType == '请选择'  
3137 - ? MyColours.color_999999  
3138 - : MyColours.color_515151,  
3139 - fontSize: ScreenUtil().setSp(28),  
3140 - ),  
3141 - )),  
3142 - HEmptyView(10),  
3143 - Image.asset(Utils.getImgPath('quan_down_f'),  
3144 - width: ScreenUtil().setWidth(28),  
3145 - height: ScreenUtil().setWidth(28)),  
3146 - ]),  
3147 - ))  
3148 - ],  
3149 - )) 3092 + // HEmptyView(20),
  3093 + // Expanded(
  3094 + // child: Row(
  3095 + // // mainAxisAlignment: MainAxisAlignment.spaceBetween,
  3096 + // crossAxisAlignment: CrossAxisAlignment.center,
  3097 + // children: [
  3098 + // Text("赠券对象:",
  3099 + // style: TextStyle(
  3100 + // color: MyColours.color_515151,
  3101 + // fontSize: ScreenUtil().setSp(28))),
  3102 + // Expanded(
  3103 + // child: InkWell(
  3104 + // onTap: () {
  3105 + // FocusScope.of(context)
  3106 + // .requestFocus(FocusNode()); //隐藏键盘
  3107 + // // 存储
  3108 +
  3109 + // DialogUtil.showSelectCusmanDialog(
  3110 + // context, couponTypes,
  3111 + // title: '赠送优惠券给', (value) async {
  3112 + // if (value != null) {
  3113 + // int couponSelectIndex = value.first;
  3114 + // couponType =
  3115 + // couponTypes[couponSelectIndex];
  3116 +
  3117 + // setState(() {});
  3118 + // }
  3119 + // },
  3120 + // selecteds: couponTypes
  3121 + // .indexOf(couponType) ==
  3122 + // -1
  3123 + // ? []
  3124 + // : [
  3125 + // couponTypes
  3126 + // .indexOf(couponType)
  3127 + // ])
  3128 + // .then((value) {});
  3129 + // },
  3130 + // child: Row(children: [
  3131 + // Expanded(
  3132 + // child: Text(
  3133 + // couponType,
  3134 + // textAlign: TextAlign.center,
  3135 + // style: TextStyle(
  3136 + // color: couponType == '请选择'
  3137 + // ? MyColours.color_999999
  3138 + // : MyColours.color_515151,
  3139 + // fontSize: ScreenUtil().setSp(28),
  3140 + // ),
  3141 + // )),
  3142 + // HEmptyView(10),
  3143 + // Image.asset(Utils.getImgPath('quan_down_f'),
  3144 + // width: ScreenUtil().setWidth(28),
  3145 + // height: ScreenUtil().setWidth(28)),
  3146 + // ]),
  3147 + // ))
  3148 + // ],
  3149 + // ))
3150 ], 3150 ],
3151 )), 3151 )),
3152 if (detailModel.isShowNoticeDeposit == '1') 3152 if (detailModel.isShowNoticeDeposit == '1')