|
...
|
...
|
@@ -29,117 +29,117 @@ class MarketingCenterHomePage extends StatefulWidget { |
|
|
|
|
|
|
|
class _MarketingCenterHomePageState extends State<MarketingCenterHomePage> {
|
|
|
|
MarketingCenterProvider marketingCenterProvider;
|
|
|
|
bool select = false; //启用预订安排通知图文模式
|
|
|
|
bool selectShowPrice = true; //分享排菜单给客户时展示菜品价格
|
|
|
|
// bool select = false; //启用预订安排通知图文模式
|
|
|
|
// bool selectShowPrice = true; //分享排菜单给客户时展示菜品价格
|
|
|
|
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
// @override
|
|
|
|
// void initState() {
|
|
|
|
// super.initState();
|
|
|
|
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
|
|
getDzSellerConf();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
// WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
|
|
// getDzSellerConf();
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
|
|
|
|
getDzSellerConf() async {
|
|
|
|
bool success = await marketingCenterProvider.getDzSellerConf(context);
|
|
|
|
if (success && marketingCenterProvider.dzSellerConfModel != null) {
|
|
|
|
select = marketingCenterProvider.dzSellerConfModel.isNewTemplate == '1'
|
|
|
|
? true
|
|
|
|
: false;
|
|
|
|
selectShowPrice =
|
|
|
|
marketingCenterProvider.dzSellerConfModel.isShowPrice == '1'
|
|
|
|
? true
|
|
|
|
: false;
|
|
|
|
setState(() {});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// getDzSellerConf() async {
|
|
|
|
// bool success = await marketingCenterProvider.getDzSellerConf(context);
|
|
|
|
// if (success && marketingCenterProvider.dzSellerConfModel != null) {
|
|
|
|
// select = marketingCenterProvider.dzSellerConfModel.isNewTemplate == '1'
|
|
|
|
// ? true
|
|
|
|
// : false;
|
|
|
|
// selectShowPrice =
|
|
|
|
// marketingCenterProvider.dzSellerConfModel.isShowPrice == '1'
|
|
|
|
// ? true
|
|
|
|
// : false;
|
|
|
|
// setState(() {});
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
Widget _item(String title, {GestureTapCallback onTap}) {
|
|
|
|
return InkWell(
|
|
|
|
onTap: onTap,
|
|
|
|
child: Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
bottom: BorderSide(
|
|
|
|
color: MyColours.color_E7E7E7, width: w(0.5)))),
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
right: w(20), left: w(36), bottom: w(12), top: w(12)),
|
|
|
|
padding: EdgeInsets.only(top: w(12), bottom: w(12), right: w(12)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
title,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setWidth(32)),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Container(
|
|
|
|
padding:
|
|
|
|
EdgeInsets.symmetric(horizontal: w(7), vertical: w(4)),
|
|
|
|
child: Image.asset(
|
|
|
|
"assets/arrow_right_new.png",
|
|
|
|
width: ScreenUtil().setWidth(18),
|
|
|
|
height: ScreenUtil().setWidth(32),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
// Widget _item(String title, {GestureTapCallback onTap}) {
|
|
|
|
// return InkWell(
|
|
|
|
// onTap: onTap,
|
|
|
|
// child: Container(
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// border: Border(
|
|
|
|
// bottom: BorderSide(
|
|
|
|
// color: MyColours.color_E7E7E7, width: w(0.5)))),
|
|
|
|
// margin: EdgeInsets.only(
|
|
|
|
// right: w(20), left: w(36), bottom: w(12), top: w(12)),
|
|
|
|
// padding: EdgeInsets.only(top: w(12), bottom: w(12), right: w(12)),
|
|
|
|
// child: Row(
|
|
|
|
// children: [
|
|
|
|
// Text(
|
|
|
|
// title,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_515151,
|
|
|
|
// fontSize: ScreenUtil().setWidth(32)),
|
|
|
|
// ),
|
|
|
|
// Spacer(),
|
|
|
|
// Container(
|
|
|
|
// padding:
|
|
|
|
// EdgeInsets.symmetric(horizontal: w(7), vertical: w(4)),
|
|
|
|
// child: Image.asset(
|
|
|
|
// "assets/arrow_right_new.png",
|
|
|
|
// width: ScreenUtil().setWidth(18),
|
|
|
|
// height: ScreenUtil().setWidth(32),
|
|
|
|
// ),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// )));
|
|
|
|
// }
|
|
|
|
|
|
|
|
///分享排菜单给客户时展示菜品价格
|
|
|
|
// ///分享排菜单给客户时展示菜品价格
|
|
|
|
|
|
|
|
Future<bool> _setPriceShow({bool isShowLoading = true}) async {
|
|
|
|
Map<String, String> params = {
|
|
|
|
'sid': Provider.of<UserModel>(context, listen: false).user.sellerid,
|
|
|
|
'key': 'is_show_price',
|
|
|
|
'value': selectShowPrice ? '1' : '0'
|
|
|
|
};
|
|
|
|
// Future<bool> _setPriceShow({bool isShowLoading = true}) async {
|
|
|
|
// Map<String, String> params = {
|
|
|
|
// 'sid': Provider.of<UserModel>(context, listen: false).user.sellerid,
|
|
|
|
// 'key': 'is_show_price',
|
|
|
|
// 'value': selectShowPrice ? '1' : '0'
|
|
|
|
// };
|
|
|
|
|
|
|
|
bool success = await marketingCenterProvider.setConfing(context, params,
|
|
|
|
needToast: false);
|
|
|
|
// bool success = await marketingCenterProvider.setConfing(context, params,
|
|
|
|
// needToast: false);
|
|
|
|
|
|
|
|
if (success) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// if (success) {
|
|
|
|
// return true;
|
|
|
|
// } else {
|
|
|
|
// return false;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
///启用预订安排通知图文模式
|
|
|
|
Future<bool> _setNewType({bool isShowLoading = true}) async {
|
|
|
|
Map<String, String> params = {
|
|
|
|
'sid': Provider.of<UserModel>(context, listen: false).user.sellerid,
|
|
|
|
'key': 'is_new_template',
|
|
|
|
'value': select ? '1' : '0'
|
|
|
|
};
|
|
|
|
// ///启用预订安排通知图文模式
|
|
|
|
// Future<bool> _setNewType({bool isShowLoading = true}) async {
|
|
|
|
// Map<String, String> params = {
|
|
|
|
// 'sid': Provider.of<UserModel>(context, listen: false).user.sellerid,
|
|
|
|
// 'key': 'is_new_template',
|
|
|
|
// 'value': select ? '1' : '0'
|
|
|
|
// };
|
|
|
|
|
|
|
|
bool success = await marketingCenterProvider.setConfing(context, params,
|
|
|
|
needToast: false);
|
|
|
|
// bool success = await marketingCenterProvider.setConfing(context, params,
|
|
|
|
// needToast: false);
|
|
|
|
|
|
|
|
if (success) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// if (success) {
|
|
|
|
// return true;
|
|
|
|
// } else {
|
|
|
|
// return false;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
///保存接口
|
|
|
|
_setData() async {
|
|
|
|
Future.wait<bool>([
|
|
|
|
_setPriceShow(),
|
|
|
|
_setNewType(),
|
|
|
|
]).then((results) {
|
|
|
|
print(results[0]);
|
|
|
|
if (results[0] && results[1]) {
|
|
|
|
Utils.showToast('设置成功');
|
|
|
|
}
|
|
|
|
}).catchError((e) {
|
|
|
|
Utils.showToast('设置失败,请重试');
|
|
|
|
print(e);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
// ///保存接口
|
|
|
|
// _setData() async {
|
|
|
|
// Future.wait<bool>([
|
|
|
|
// // _setPriceShow(),
|
|
|
|
// _setNewType(),
|
|
|
|
// ]).then((results) {
|
|
|
|
// print(results[0]);
|
|
|
|
// if (results[0] && results[1]) {
|
|
|
|
// Utils.showToast('设置成功');
|
|
|
|
// }
|
|
|
|
// }).catchError((e) {
|
|
|
|
// Utils.showToast('设置失败,请重试');
|
|
|
|
// print(e);
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
...
|
...
|
@@ -202,9 +202,7 @@ class _MarketingCenterHomePageState extends State<MarketingCenterHomePage> { |
|
|
|
VEmptyView(24),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
selectShowPrice = !selectShowPrice;
|
|
|
|
});
|
|
|
|
NavigatorUtil.goOrderSettingPage(context);
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
...
|
...
|
@@ -213,52 +211,33 @@ class _MarketingCenterHomePageState extends State<MarketingCenterHomePage> { |
|
|
|
bottom: w(12),
|
|
|
|
right: w(12)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'分享排菜单给客户时展示菜品价格',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setWidth(32)),
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'提前点菜',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setWidth(32)),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: w(7), vertical: w(4)),
|
|
|
|
child: Image.asset(
|
|
|
|
"assets/arrow_right_new.png",
|
|
|
|
width: ScreenUtil().setWidth(18),
|
|
|
|
height: ScreenUtil().setWidth(32),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: w(7), vertical: w(4)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath(selectShowPrice
|
|
|
|
? 'swich_on'
|
|
|
|
: 'swich_off'),
|
|
|
|
width: w(44),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
// RoundButton(
|
|
|
|
// text: '预览',
|
|
|
|
// gradientStart: MyColours.color_ffffff,
|
|
|
|
// gradientEnd: MyColours.color_ffffff,
|
|
|
|
// borderColor: MyColours.color_438E93,
|
|
|
|
// textColor: MyColours.color_438E93,
|
|
|
|
// radius: ScreenUtil().setWidth(22),
|
|
|
|
// fontSize: 24,
|
|
|
|
// width: w(72),
|
|
|
|
// height: ScreenUtil().setWidth(44),
|
|
|
|
// isBold: true,
|
|
|
|
// onPressed: () {
|
|
|
|
// NavigatorUtil.goMarkingPreviewPage(context);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
]))),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
))),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(left: w(16)),
|
|
|
|
child: MyDivider(double.infinity, w(0.5),
|
|
|
|
color: MyColours.color_E7E7E7)),
|
|
|
|
VEmptyView(20),
|
|
|
|
VEmptyView(24),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
select = !select;
|
|
|
|
});
|
|
|
|
NavigatorUtil.goCustomerNoticeSettingPage(context);
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
...
|
...
|
@@ -267,103 +246,194 @@ class _MarketingCenterHomePageState extends State<MarketingCenterHomePage> { |
|
|
|
bottom: w(12),
|
|
|
|
right: w(12)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'启用预订安排通知图文模式',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setWidth(32)),
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'客户通知设置',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setWidth(32)),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: w(7), vertical: w(4)),
|
|
|
|
child: Image.asset(
|
|
|
|
"assets/arrow_right_new.png",
|
|
|
|
width: ScreenUtil().setWidth(18),
|
|
|
|
height: ScreenUtil().setWidth(32),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: w(7), vertical: w(4)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
select ? 'swich_on' : 'swich_off'),
|
|
|
|
width: w(44),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
// RoundButton(
|
|
|
|
// text: '预览',
|
|
|
|
// gradientStart: MyColours.color_ffffff,
|
|
|
|
// gradientEnd: MyColours.color_ffffff,
|
|
|
|
// borderColor: MyColours.color_438E93,
|
|
|
|
// textColor: MyColours.color_438E93,
|
|
|
|
// radius: ScreenUtil().setWidth(22),
|
|
|
|
// fontSize: 24,
|
|
|
|
// width: w(72),
|
|
|
|
// height: ScreenUtil().setWidth(44),
|
|
|
|
// isBold: true,
|
|
|
|
// onPressed: () {
|
|
|
|
// NavigatorUtil.goMarkingPreviewPage(context);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
]))),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
))),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(left: w(16)),
|
|
|
|
child: MyDivider(double.infinity, w(0.5),
|
|
|
|
color: MyColours.color_E7E7E7)),
|
|
|
|
_item('首图形象展示', onTap: () {
|
|
|
|
NavigatorUtil.goFirstImagePage(context);
|
|
|
|
}),
|
|
|
|
_item('预订信息模块', onTap: () {
|
|
|
|
NavigatorUtil.goBookInfoPage(context);
|
|
|
|
}),
|
|
|
|
_item('店铺介绍展示', onTap: () {
|
|
|
|
NavigatorUtil.goStoreIntroducePage(context);
|
|
|
|
}),
|
|
|
|
_item('主厨介绍展示', onTap: () {
|
|
|
|
NavigatorUtil.goChefIntroducePage(context);
|
|
|
|
}),
|
|
|
|
_item('招牌菜展示', onTap: () {
|
|
|
|
NavigatorUtil.goDishShowPage(context);
|
|
|
|
}),
|
|
|
|
_item('营销及客户互动功能', onTap: () {
|
|
|
|
NavigatorUtil.goMarkingInteractionPage(context);
|
|
|
|
}),
|
|
|
|
VEmptyView(24),
|
|
|
|
// InkWell(
|
|
|
|
// onTap: () {
|
|
|
|
// setState(() {
|
|
|
|
// selectShowPrice = !selectShowPrice;
|
|
|
|
// });
|
|
|
|
// },
|
|
|
|
// child: Padding(
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// left: w(16),
|
|
|
|
// top: w(12),
|
|
|
|
// bottom: w(12),
|
|
|
|
// right: w(12)),
|
|
|
|
// child: Row(
|
|
|
|
// mainAxisAlignment:
|
|
|
|
// MainAxisAlignment.spaceBetween,
|
|
|
|
// children: [
|
|
|
|
// Text(
|
|
|
|
// '分享排菜单给客户时展示菜品价格',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_515151,
|
|
|
|
// fontSize: ScreenUtil().setWidth(32)),
|
|
|
|
// ),
|
|
|
|
// Spacer(),
|
|
|
|
// Container(
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: w(7), vertical: w(4)),
|
|
|
|
// child: Image.asset(
|
|
|
|
// Utils.getImgPath(selectShowPrice
|
|
|
|
// ? 'swich_on'
|
|
|
|
// : 'swich_off'),
|
|
|
|
// width: w(44),
|
|
|
|
// ),
|
|
|
|
// )
|
|
|
|
// // RoundButton(
|
|
|
|
// // text: '预览',
|
|
|
|
// // gradientStart: MyColours.color_ffffff,
|
|
|
|
// // gradientEnd: MyColours.color_ffffff,
|
|
|
|
// // borderColor: MyColours.color_438E93,
|
|
|
|
// // textColor: MyColours.color_438E93,
|
|
|
|
// // radius: ScreenUtil().setWidth(22),
|
|
|
|
// // fontSize: 24,
|
|
|
|
// // width: w(72),
|
|
|
|
// // height: ScreenUtil().setWidth(44),
|
|
|
|
// // isBold: true,
|
|
|
|
// // onPressed: () {
|
|
|
|
// // NavigatorUtil.goMarkingPreviewPage(context);
|
|
|
|
// // },
|
|
|
|
// // ),
|
|
|
|
// ]))),
|
|
|
|
// Padding(
|
|
|
|
// padding: EdgeInsets.only(left: w(16)),
|
|
|
|
// child: MyDivider(double.infinity, w(0.5),
|
|
|
|
// color: MyColours.color_E7E7E7)),
|
|
|
|
// VEmptyView(20),
|
|
|
|
// InkWell(
|
|
|
|
// onTap: () {
|
|
|
|
// setState(() {
|
|
|
|
// select = !select;
|
|
|
|
// });
|
|
|
|
// },
|
|
|
|
// child: Padding(
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// left: w(16),
|
|
|
|
// top: w(12),
|
|
|
|
// bottom: w(12),
|
|
|
|
// right: w(12)),
|
|
|
|
// child: Row(
|
|
|
|
// mainAxisAlignment:
|
|
|
|
// MainAxisAlignment.spaceBetween,
|
|
|
|
// children: [
|
|
|
|
// Text(
|
|
|
|
// '启用预订安排通知图文模式',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_515151,
|
|
|
|
// fontSize: ScreenUtil().setWidth(32)),
|
|
|
|
// ),
|
|
|
|
// Spacer(),
|
|
|
|
// Container(
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: w(7), vertical: w(4)),
|
|
|
|
// child: Image.asset(
|
|
|
|
// Utils.getImgPath(
|
|
|
|
// select ? 'swich_on' : 'swich_off'),
|
|
|
|
// width: w(44),
|
|
|
|
// ),
|
|
|
|
// )
|
|
|
|
// // RoundButton(
|
|
|
|
// // text: '预览',
|
|
|
|
// // gradientStart: MyColours.color_ffffff,
|
|
|
|
// // gradientEnd: MyColours.color_ffffff,
|
|
|
|
// // borderColor: MyColours.color_438E93,
|
|
|
|
// // textColor: MyColours.color_438E93,
|
|
|
|
// // radius: ScreenUtil().setWidth(22),
|
|
|
|
// // fontSize: 24,
|
|
|
|
// // width: w(72),
|
|
|
|
// // height: ScreenUtil().setWidth(44),
|
|
|
|
// // isBold: true,
|
|
|
|
// // onPressed: () {
|
|
|
|
// // NavigatorUtil.goMarkingPreviewPage(context);
|
|
|
|
// // },
|
|
|
|
// // ),
|
|
|
|
// ]))),
|
|
|
|
// Padding(
|
|
|
|
// padding: EdgeInsets.only(left: w(16)),
|
|
|
|
// child: MyDivider(double.infinity, w(0.5),
|
|
|
|
// color: MyColours.color_E7E7E7)),
|
|
|
|
// _item('首图形象展示', onTap: () {
|
|
|
|
// NavigatorUtil.goFirstImagePage(context);
|
|
|
|
// }),
|
|
|
|
// _item('预订信息模块', onTap: () {
|
|
|
|
// NavigatorUtil.goBookInfoPage(context);
|
|
|
|
// }),
|
|
|
|
// _item('店铺介绍展示', onTap: () {
|
|
|
|
// NavigatorUtil.goStoreIntroducePage(context);
|
|
|
|
// }),
|
|
|
|
// _item('主厨介绍展示', onTap: () {
|
|
|
|
// NavigatorUtil.goChefIntroducePage(context);
|
|
|
|
// }),
|
|
|
|
// _item('招牌菜展示', onTap: () {
|
|
|
|
// NavigatorUtil.goDishShowPage(context);
|
|
|
|
// }),
|
|
|
|
// _item('营销及客户互动功能', onTap: () {
|
|
|
|
// NavigatorUtil.goMarkingInteractionPage(context);
|
|
|
|
// }),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: w(23), right: w(23), top: w(12), bottom: w(25)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
RoundButton(
|
|
|
|
text: '图文预览',
|
|
|
|
width: w(100),
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
borderColor: MyColours.color_438E93,
|
|
|
|
radius: r(5),
|
|
|
|
fontSize: 32,
|
|
|
|
height: w(40),
|
|
|
|
textColor: MyColours.color_438E93,
|
|
|
|
isBold: true,
|
|
|
|
onPressed: () async {
|
|
|
|
NavigatorUtil.goMarkingPreviewPage(context);
|
|
|
|
}),
|
|
|
|
HEmptyView(30),
|
|
|
|
Expanded(
|
|
|
|
child: RoundButton(
|
|
|
|
text: '保存',
|
|
|
|
gradientStart: MyColours.color_199095,
|
|
|
|
gradientEnd: MyColours.color_199095,
|
|
|
|
// borderColor: MyColours.color_999999,
|
|
|
|
radius: r(5),
|
|
|
|
fontSize: 32,
|
|
|
|
height: w(40),
|
|
|
|
isBold: true,
|
|
|
|
onPressed: () async {
|
|
|
|
//调用接口
|
|
|
|
_setData();
|
|
|
|
}))
|
|
|
|
],
|
|
|
|
))
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// left: w(23), right: w(23), top: w(12), bottom: w(25)),
|
|
|
|
// child: Row(
|
|
|
|
// children: [
|
|
|
|
// RoundButton(
|
|
|
|
// text: '图文预览',
|
|
|
|
// width: w(100),
|
|
|
|
// gradientStart: MyColours.color_ffffff,
|
|
|
|
// gradientEnd: MyColours.color_ffffff,
|
|
|
|
// borderColor: MyColours.color_438E93,
|
|
|
|
// radius: r(5),
|
|
|
|
// fontSize: 32,
|
|
|
|
// height: w(40),
|
|
|
|
// textColor: MyColours.color_438E93,
|
|
|
|
// isBold: true,
|
|
|
|
// onPressed: () async {
|
|
|
|
// NavigatorUtil.goMarkingPreviewPage(context);
|
|
|
|
// }),
|
|
|
|
// HEmptyView(30),
|
|
|
|
// Expanded(
|
|
|
|
// child: RoundButton(
|
|
|
|
// text: '保存',
|
|
|
|
// gradientStart: MyColours.color_199095,
|
|
|
|
// gradientEnd: MyColours.color_199095,
|
|
|
|
// // borderColor: MyColours.color_999999,
|
|
|
|
// radius: r(5),
|
|
|
|
// fontSize: 32,
|
|
|
|
// height: w(40),
|
|
|
|
// isBold: true,
|
|
|
|
// onPressed: () async {
|
|
|
|
// //调用接口
|
|
|
|
// _setData();
|
|
|
|
// }))
|
|
|
|
// ],
|
|
|
|
// ))
|
|
|
|
],
|
|
|
|
)));
|
|
|
|
}
|
...
|
...
|
|