Commit 7b11d6339f2dfab7de63a0fc6501257054e7be6b

Authored by weixin_45529955
1 parent af744dc7

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

... ... @@ -3404,43 +3404,43 @@ class NotebookDetailPageState extends State<NotebookDetailPage>
)
]),
TitleAndBtn(
title: "赠券对象",
content: couponType,
// list: personNumList,
detailModel: model,
callback: () {
FocusScope.of(context)
.requestFocus(
FocusNode()); //隐藏键盘
// 存储
DialogUtil.showSelectCusmanDialog(
context,
couponTypes,
title: '赠送优惠券给',
(value) async {
if (value != null) {
int couponSelectIndex =
value.first;
couponType = couponTypes[
couponSelectIndex];
setState(() {});
}
},
selecteds: couponTypes
.indexOf(
couponType) ==
-1
? []
: [
couponTypes
.indexOf(
couponType)
])
.then((value) {});
}),
// TitleAndBtn(
// title: "赠券对象",
// content: couponType,
// // list: personNumList,
// detailModel: model,
// callback: () {
// FocusScope.of(context)
// .requestFocus(
// FocusNode()); //隐藏键盘
// // 存储
// DialogUtil.showSelectCusmanDialog(
// context,
// couponTypes,
// title: '赠送优惠券给',
// (value) async {
// if (value != null) {
// int couponSelectIndex =
// value.first;
// couponType = couponTypes[
// couponSelectIndex];
// setState(() {});
// }
// },
// selecteds: couponTypes
// .indexOf(
// couponType) ==
// -1
// ? []
// : [
// couponTypes
// .indexOf(
// couponType)
// ])
// .then((value) {});
// }),
// ),
// Offstage(
... ...
... ... @@ -906,8 +906,8 @@ class _FeastCreatePageState extends State<FeastCreatePage> {
onTap: () {
FocusScope.of(context).requestFocus(FocusNode()); //隐藏键盘
List<String?> list = [];
for (Map item
in sexList as Iterable<Map<dynamic, dynamic>>) {
for (dynamic item
in sexList) {
list.add(item['title']);
}
if (list.length == 0) {
... ...
... ... @@ -3073,7 +3073,7 @@ class InvicationPageState extends State<InvicationPage>
Expanded(
child: Text(
reserveType!,
textAlign: TextAlign.center,
textAlign: TextAlign.right,
style: TextStyle(
color: reserveType == '请选择'
? MyColours.color_999999
... ... @@ -3089,64 +3089,64 @@ class InvicationPageState extends State<InvicationPage>
))
],
)),
HEmptyView(20),
Expanded(
child: Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text("赠券对象:",
style: TextStyle(
color: MyColours.color_515151,
fontSize: ScreenUtil().setSp(28))),
Expanded(
child: InkWell(
onTap: () {
FocusScope.of(context)
.requestFocus(FocusNode()); //隐藏键盘
// 存储
DialogUtil.showSelectCusmanDialog(
context, couponTypes,
title: '赠送优惠券给', (value) async {
if (value != null) {
int couponSelectIndex = value.first;
couponType =
couponTypes[couponSelectIndex];
setState(() {});
}
},
selecteds: couponTypes
.indexOf(couponType) ==
-1
? []
: [
couponTypes
.indexOf(couponType)
])
.then((value) {});
},
child: Row(children: [
Expanded(
child: Text(
couponType,
textAlign: TextAlign.center,
style: TextStyle(
color: couponType == '请选择'
? MyColours.color_999999
: MyColours.color_515151,
fontSize: ScreenUtil().setSp(28),
),
)),
HEmptyView(10),
Image.asset(Utils.getImgPath('quan_down_f'),
width: ScreenUtil().setWidth(28),
height: ScreenUtil().setWidth(28)),
]),
))
],
))
// HEmptyView(20),
// Expanded(
// child: Row(
// // mainAxisAlignment: MainAxisAlignment.spaceBetween,
// crossAxisAlignment: CrossAxisAlignment.center,
// children: [
// Text("赠券对象:",
// style: TextStyle(
// color: MyColours.color_515151,
// fontSize: ScreenUtil().setSp(28))),
// Expanded(
// child: InkWell(
// onTap: () {
// FocusScope.of(context)
// .requestFocus(FocusNode()); //隐藏键盘
// // 存储
// DialogUtil.showSelectCusmanDialog(
// context, couponTypes,
// title: '赠送优惠券给', (value) async {
// if (value != null) {
// int couponSelectIndex = value.first;
// couponType =
// couponTypes[couponSelectIndex];
// setState(() {});
// }
// },
// selecteds: couponTypes
// .indexOf(couponType) ==
// -1
// ? []
// : [
// couponTypes
// .indexOf(couponType)
// ])
// .then((value) {});
// },
// child: Row(children: [
// Expanded(
// child: Text(
// couponType,
// textAlign: TextAlign.center,
// style: TextStyle(
// color: couponType == '请选择'
// ? MyColours.color_999999
// : MyColours.color_515151,
// fontSize: ScreenUtil().setSp(28),
// ),
// )),
// HEmptyView(10),
// Image.asset(Utils.getImgPath('quan_down_f'),
// width: ScreenUtil().setWidth(28),
// height: ScreenUtil().setWidth(28)),
// ]),
// ))
// ],
// ))
],
)),
if (detailModel.isShowNoticeDeposit == '1')
... ...