Commit b7c6b3ba83ed5f30e5d30ab85e3341ed971b6d2e

Authored by wdn127929
1 parent 744f2ec5

设置菜单主题色UI

... ... @@ -21,6 +21,7 @@ import 'package:one_key/widgets/v_empty_view.dart';
import 'package:provider/provider.dart';
import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart';
import '../../../models/theme_color_model.dart';
import '../../../utils/screen_util.dart';
class MenuManagePage extends StatefulWidget {
... ... @@ -34,9 +35,13 @@ class _MenuManagePageState extends State<MenuManagePage> {
ScrollController _controller = ScrollController();
MenuManageProvider menuManageProvider;
bool isShow = false; //添加菜品按钮
List<ThemeColorModel> themeColorData = [];
ThemeColorModel themeColerModel1;
@override
void initState() {
super.initState();
_initThemeColor();
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
_getCookbookByClass(showLoading: false);
_getCookbookBySellerId();
... ... @@ -54,6 +59,47 @@ class _MenuManagePageState extends State<MenuManagePage> {
EventBus().off('menu_manage_page');
}
///初始化主题颜色
_initThemeColor() {
// int colorValue = App.sp.get("themeColor");
// if (colorValue != null) {
// //缓存里有设置好的主题色
// if (colorValue == MyColours.color_0C0F0E.value) {
// themeColorIndex = 0;
// } else if (colorValue == MyColours.color_0143A3.value) {
// themeColorIndex = 1;
// } else if (colorValue == MyColours.color_438E93.value) {
// themeColorIndex = 2;
// }
// }
ThemeColorModel colorModel = ThemeColorModel();
colorModel.name = '睿智灰';
colorModel.color = MyColours.color_4D4E50;
themeColorData.add(colorModel);
ThemeColorModel colorModel1 = ThemeColorModel();
colorModel1.name = '珍珠白';
colorModel1.color = MyColours.color_FBF6F1;
themeColorData.add(colorModel1);
ThemeColorModel colorModel2 = ThemeColorModel();
colorModel2.name = '国风库金';
colorModel2.color = MyColours.color_877952;
themeColorData.add(colorModel2);
ThemeColorModel colorModel3 = ThemeColorModel();
colorModel3.name = '群青绿';
colorModel3.color = MyColours.color_438E93;
themeColorData.add(colorModel3);
ThemeColorModel colorModel4 = ThemeColorModel();
colorModel4.name = '国风绿';
colorModel4.color = MyColours.color_3E6F51;
themeColorData.add(colorModel4);
themeColerModel1 = themeColorData[4];
}
///获取分类数据
_getCookbookBySellerId({bool showLoading = true}) async {
Map<String, String> params = {
... ... @@ -165,10 +211,10 @@ class _MenuManagePageState extends State<MenuManagePage> {
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(20),
color: MyColours.color_DBDBDB,
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_000000,
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
... ... @@ -176,8 +222,17 @@ class _MenuManagePageState extends State<MenuManagePage> {
),
VEmptyView(20),
Text('味型:咸鲜 烹调:熬煮',
style:
TextStyle(fontSize: font(12), color: MyColours.color_DBDBDB)),
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(12),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
])),
VEmptyView(20),
Text(
'¥${model.price}/${model.unit} 会员 ¥${model.price}/${model.unit} ',
... ... @@ -185,10 +240,10 @@ class _MenuManagePageState extends State<MenuManagePage> {
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(14),
color: MyColours.color_DBDBDB,
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_000000,
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
... ... @@ -210,10 +265,10 @@ class _MenuManagePageState extends State<MenuManagePage> {
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(20),
color: MyColours.color_DBDBDB,
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_000000,
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
... ... @@ -222,7 +277,17 @@ class _MenuManagePageState extends State<MenuManagePage> {
VEmptyView(20),
Text('味型:咸鲜 烹调:熬煮',
style:
TextStyle(fontSize: font(12), color: MyColours.color_DBDBDB)),
TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(12),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
])),
VEmptyView(20),
Text(
'¥${model.price}/${model.unit} 会员 ¥${model.price}/${model.unit} ',
... ... @@ -230,10 +295,10 @@ class _MenuManagePageState extends State<MenuManagePage> {
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(14),
color: MyColours.color_DBDBDB,
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_000000,
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
... ... @@ -260,10 +325,10 @@ class _MenuManagePageState extends State<MenuManagePage> {
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(20),
color: MyColours.color_DBDBDB,
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_000000,
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
... ... @@ -272,7 +337,16 @@ class _MenuManagePageState extends State<MenuManagePage> {
VEmptyView(20),
Text('味型:咸鲜 烹调:熬煮',
style: TextStyle(
fontSize: font(12), color: MyColours.color_DBDBDB))
fontWeight: FontWeight.bold,
fontSize: font(12),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
]))
],
),
),
... ... @@ -283,10 +357,10 @@ class _MenuManagePageState extends State<MenuManagePage> {
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(14),
color: MyColours.color_DBDBDB,
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_000000,
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
... ... @@ -296,10 +370,10 @@ class _MenuManagePageState extends State<MenuManagePage> {
);
}
Widget _smallMenu(MenuSunModel model) {
Widget _smallMenu(MenuSunModel model, ThemeColorModel themeColerModel) {
return Container(
width: ScreenUtil().screenWidth / 2,
color: MyColours.color_4D4E50,
color: themeColerModel.color,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
... ... @@ -311,10 +385,10 @@ class _MenuManagePageState extends State<MenuManagePage> {
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(20),
color: MyColours.color_DBDBDB,
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_000000,
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
... ... @@ -323,9 +397,20 @@ class _MenuManagePageState extends State<MenuManagePage> {
VEmptyView(20),
Padding(
padding: EdgeInsets.symmetric(horizontal: w(10)),
child: Text('味型:咸鲜 烹调:熬煮',
style: TextStyle(
fontSize: font(12), color: MyColours.color_DBDBDB))),
child: Text(
'味型:咸鲜 烹调:熬煮',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(12),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
]),
)),
VEmptyView(20),
Padding(
padding: EdgeInsets.symmetric(horizontal: w(10)),
... ... @@ -335,10 +420,10 @@ class _MenuManagePageState extends State<MenuManagePage> {
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(14),
color: MyColours.color_DBDBDB,
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_000000,
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
... ... @@ -358,7 +443,10 @@ class _MenuManagePageState extends State<MenuManagePage> {
child: Text(
'江南传统名菜,口味咸鲜,汤白汁浓,肉质酥肥,笋清香脆嫩,鲜味浓厚。',
style: TextStyle(
color: MyColours.color_DBDBDB, fontSize: font(12)),
color: themeColerModel.name == '珍珠白'
? MyColours.color_515151
: MyColours.color_FBF6F1,
fontSize: font(12)),
),
),
Align(
... ... @@ -367,7 +455,7 @@ class _MenuManagePageState extends State<MenuManagePage> {
padding:
EdgeInsets.only(right: w(20), top: w(19), bottom: w(19)),
child: Image.asset(
Utils.getImgPath('add_area'),
Utils.getImgPath('add_store'),
width: w(22),
),
)),
... ... @@ -395,7 +483,7 @@ class _MenuManagePageState extends State<MenuManagePage> {
model.imageType = null;
}
if (object['move'] != null) {
if (object['move'] == '1') {
if (object['move'] == '1' && model.indexNew != 0) {
//向上移动
var child = menuManageProvider.menuModel[indexOut].cookbooklist
... ... @@ -405,7 +493,10 @@ class _MenuManagePageState extends State<MenuManagePage> {
.insert(model.indexNew - 1, child);
_handleData(isMove: true);
} else if (object['move'] == '2') {
} else if (object['move'] == '2' &&
model.indexNew !=
menuManageProvider.menuModel[indexOut].cookbooklist.length -
1) {
//向下移动
var child = menuManageProvider.menuModel[indexOut].cookbooklist
.removeAt(model.indexNew);
... ... @@ -415,9 +506,10 @@ class _MenuManagePageState extends State<MenuManagePage> {
_handleData(isMove: true);
}
} else {
_handleData();
}
}
;
}
@override
... ... @@ -431,6 +523,11 @@ class _MenuManagePageState extends State<MenuManagePage> {
EventBus().emit('changeStatusColor');
Navigator.of(context).pop();
},
rightImgName: 'set_g.png',
onTapRight: () {
NavigatorUtil.goMenuThemeColorSetPage(
context, {'object': menuManageProvider.menuModel});
},
),
body: WillPopScope(
onWillPop: () {
... ... @@ -457,7 +554,7 @@ class _MenuManagePageState extends State<MenuManagePage> {
))
: Expanded(
child: Container(
color: MyColours.color_4D4E50,
color: MyColours.color_ffffff,
padding: EdgeInsets.symmetric(horizontal: w(20)),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
... ... @@ -467,7 +564,7 @@ class _MenuManagePageState extends State<MenuManagePage> {
'您还没有创建菜谱,建议按照如下顺序创建店铺专属菜谱:\n1、点击分类管理创建菜谱分类,如热菜、凉菜等;\n2、点击添加菜品,创建菜品;\n3、在菜品列表中,长按菜品,可以配置菜品显示方式。\n',
style: TextStyle(
height: 1.3,
color: MyColours.color_DBDBDB,
color: MyColours.color_515151,
fontSize: font(16),
fontWeight: FontWeight.bold),
),
... ... @@ -476,7 +573,7 @@ class _MenuManagePageState extends State<MenuManagePage> {
'赶快来创建您的专业菜谱吧!',
style: TextStyle(
height: 1.3,
color: MyColours.color_DBDBDB,
color: MyColours.color_515151,
fontSize: font(16),
fontWeight: FontWeight.bold),
),
... ... @@ -547,11 +644,15 @@ class _MenuManagePageState extends State<MenuManagePage> {
shrinkWrap: true,
controller: _controller,
itemBuilder: (BuildContext context, int indexOut) {
Color classNameColor =
themeColerModel1.name == '珍珠白'
? MyColours.color_515151
: MyColours.color_FBF6F1;
return Column(
children: [
Container(
height: w(32),
color: MyColours.color_4D4E50,
color: themeColerModel1.color,
margin: EdgeInsets.only(bottom: (w(2))),
child: Row(
mainAxisAlignment:
... ... @@ -561,30 +662,30 @@ class _MenuManagePageState extends State<MenuManagePage> {
width: ScreenUtil().setWidth(10),
height: ScreenUtil().setWidth(10),
decoration: BoxDecoration(
color: MyColours.color_DBDBDB,
color: classNameColor,
shape: BoxShape.circle),
),
MyDivider(ScreenUtil().setWidth(80),
ScreenUtil().setWidth(2),
color: MyColours.color_DBDBDB),
color: classNameColor),
HEmptyView(20),
Text(
menuManageProvider
.menuModel[indexOut].className,
style: TextStyle(
color: MyColours.color_ffffff,
color: classNameColor,
fontSize: ScreenUtil().setSp(28),
),
),
HEmptyView(20),
MyDivider(ScreenUtil().setWidth(80),
ScreenUtil().setWidth(2),
color: MyColours.color_DBDBDB),
color: classNameColor),
Container(
width: ScreenUtil().setWidth(10),
height: ScreenUtil().setWidth(10),
decoration: BoxDecoration(
color: MyColours.color_DBDBDB,
color: classNameColor,
shape: BoxShape.circle),
),
],
... ... @@ -607,42 +708,59 @@ class _MenuManagePageState extends State<MenuManagePage> {
if (model.imageType == '2') {
//小图
return GestureDetector(
onTap: () async {
await NavigatorUtil
.goMenuAddDishesPage(
context,
isNew: false,
idstr: model.id);
},
onLongPress: () async {
print('onLongPress 长按事件');
_onLongPress(model, indexOut);
},
child: Stack(
children: [
_smallMenu(model),
Positioned(
bottom: ScreenUtil()
.setWidth(14),
// right: ScreenUtil().setWidth(20),
child: model.status == '1'
? SizedBox()
: Image.asset(
Utils.getImgPath(
'stop-sell'),
width:
ScreenUtil()
child: Padding(
padding: EdgeInsets.only(
bottom: w(2)),
child: Stack(
children: [
_smallMenu(model,
themeColerModel1),
Positioned(
bottom: ScreenUtil()
.setWidth(14),
// right: ScreenUtil().setWidth(20),
child: model.status ==
'1'
? SizedBox()
: Image.asset(
Utils.getImgPath(
'stop-sell'),
width: ScreenUtil()
.setWidth(
182),
// height: ScreenUtil()
// .setWidth(52),
))
],
));
// height: ScreenUtil()
// .setWidth(52),
))
],
)));
}
return GestureDetector(
onTap: () async {
await NavigatorUtil
.goMenuAddDishesPage(context,
isNew: false,
idstr: model.id);
},
onLongPress: () {
print('onLongPress 长按事件');
_onLongPress(model, indexOut);
},
child: Stack(children: [
Container(
color: MyColours.color_4D4E50,
color: themeColerModel1.color,
margin: EdgeInsets.only(
bottom: (w(2))),
child: Column(
... ... @@ -704,8 +822,13 @@ class _MenuManagePageState extends State<MenuManagePage> {
child: Text(
'江南传统名菜,口味咸鲜,汤白汁浓,肉质酥肥,笋清香脆嫩,鲜味浓厚。',
style: TextStyle(
color: MyColours
.color_DBDBDB,
color: themeColerModel1
.name ==
'珍珠白'
? MyColours
.color_515151
: MyColours
.color_FBF6F1,
fontSize:
font(12)),
),
... ... @@ -722,7 +845,7 @@ class _MenuManagePageState extends State<MenuManagePage> {
w(19)),
child: Image.asset(
Utils.getImgPath(
'add_area'),
'add_store'),
width: w(22),
),
))
... ... @@ -760,6 +883,14 @@ class _MenuManagePageState extends State<MenuManagePage> {
Expanded(
flex: 1,
child: GestureDetector(
onTap: () async {
await NavigatorUtil
.goMenuAddDishesPage(
context,
isNew: false,
idstr: temp[0]
.id);
},
onLongPress: () {
print(
'onLongPress 长按事件');
... ... @@ -768,7 +899,8 @@ class _MenuManagePageState extends State<MenuManagePage> {
},
child: Stack(
children: [
_smallMenu(temp[0]),
_smallMenu(temp[0],
themeColerModel1),
Positioned(
bottom:
ScreenUtil()
... ... @@ -794,6 +926,14 @@ class _MenuManagePageState extends State<MenuManagePage> {
Expanded(
flex: 1,
child: GestureDetector(
onTap: () async {
await NavigatorUtil
.goMenuAddDishesPage(
context,
isNew: false,
idstr: temp[1]
.id);
},
onLongPress: () {
print(
'onLongPress 长按事件');
... ... @@ -803,7 +943,8 @@ class _MenuManagePageState extends State<MenuManagePage> {
},
child: Stack(
children: [
_smallMenu(temp[1]),
_smallMenu(temp[1],
themeColerModel1),
Positioned(
bottom:
ScreenUtil()
... ...
import 'dart:convert';
import 'dart:io';
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter_native_image/flutter_native_image.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:image_picker/image_picker.dart';
import 'package:one_key/provider/marketing_center_provider.dart';
import 'package:one_key/provider/menu_provider.dart';
import 'package:one_key/route/route_handles.dart';
import 'package:one_key/utils/dialog_util.dart';
import 'package:one_key/utils/utils.dart';
import 'package:one_key/widgets/system_app_bar.dart';
import 'package:one_key/widgets/v_empty_view.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:provider/provider.dart';
import '../../../../app.dart';
import '../../../../models/theme_color_model.dart';
import '../../../../models/upload_img_model.dart';
import '../../../../provider/upload_img_provider.dart';
import '../../../../provider/user_model.dart';
import '../../../../res/colors.dart';
import '../../../../utils/screen_util.dart';
import '../../../../utils/upload_image_util.dart';
import '../../../../widgets/MyDivider.dart';
import '../../../../widgets/round_button.dart';
import '../../../constant/state.dart';
import '../../../models/cookbook_model.dart';
import '../../../widgets/h_empty_view.dart';
import '../../../widgets/page_exception.dart';
import '../../online_check/photo_view_wiget.dart';
/**
* 菜单管理配置
*/
class MenuThemeColorSetPage extends StatefulWidget {
final List<MenuModel> menuModel;
MenuThemeColorSetPage({Key key, this.menuModel}) : super(key: key);
@override
_MenuThemeColorSetPageState createState() => _MenuThemeColorSetPageState();
}
class _MenuThemeColorSetPageState extends State<MenuThemeColorSetPage> {
List<ThemeColorModel> themeColorData = [];
int themeColorIndex = 0;
TextEditingController titleC = TextEditingController();
FocusNode titleNode = FocusNode();
TextEditingController sloganC = TextEditingController();
FocusNode sloganNode = FocusNode();
final picker = ImagePicker();
ScrollController _controller = ScrollController();
List<MenuModel> menuModelTemp = [];
@override
void initState() {
super.initState();
_initThemeColor();
_handleData();
WidgetsBinding.instance.addPostFrameCallback((_) {
// getSellerTemplateConf();
// _getCookbookByClass(showLoading: true);
});
}
@override
void dispose() {
super.dispose();
}
// getSellerTemplateConf() async {
// bool success =
// await _marketingCenterProvider.getSellerTemplateConf(context);
// if (success && _marketingCenterProvider.markDataModel.home != null) {
// int colorValue =
// int.parse(_marketingCenterProvider.markDataModel.home.themeColor);
// if (colorValue == MyColours.color_0C0F0E.value) {
// themeColorIndex = 0;
// } else if (colorValue == MyColours.color_0143A3.value) {
// themeColorIndex = 1;
// } else if (colorValue == MyColours.color_438E93.value) {
// themeColorIndex = 2;
// }
// titleC.text = _marketingCenterProvider.markDataModel.home.title;
// sloganC.text = _marketingCenterProvider.markDataModel.home.slogan;
// _uploadImageProvider.firstImage.qiniuUrl =
// _marketingCenterProvider.markDataModel.home.image ?? null;
// _uploadImageProvider.firstImage.process =
// _marketingCenterProvider.markDataModel.home.image != null &&
// _marketingCenterProvider.markDataModel.home.image != ''
// ? 1
// : null;
// setState(() {});
// }
// }
///初始化主题颜色
_initThemeColor() {
// int colorValue = App.sp.get("themeColor");
// if (colorValue != null) {
// //缓存里有设置好的主题色
// if (colorValue == MyColours.color_0C0F0E.value) {
// themeColorIndex = 0;
// } else if (colorValue == MyColours.color_0143A3.value) {
// themeColorIndex = 1;
// } else if (colorValue == MyColours.color_438E93.value) {
// themeColorIndex = 2;
// }
// }
ThemeColorModel colorModel = ThemeColorModel();
colorModel.name = '睿智灰';
colorModel.color = MyColours.color_4D4E50;
themeColorData.add(colorModel);
ThemeColorModel colorModel1 = ThemeColorModel();
colorModel1.name = '珍珠白';
colorModel1.color = MyColours.color_FBF6F1;
themeColorData.add(colorModel1);
ThemeColorModel colorModel2 = ThemeColorModel();
colorModel2.name = '国风库金';
colorModel2.color = MyColours.color_877952;
themeColorData.add(colorModel2);
ThemeColorModel colorModel3 = ThemeColorModel();
colorModel3.name = '群青绿';
colorModel3.color = MyColours.color_438E93;
themeColorData.add(colorModel3);
ThemeColorModel colorModel4 = ThemeColorModel();
colorModel4.name = '国风绿';
colorModel4.color = MyColours.color_3E6F51;
themeColorData.add(colorModel4);
}
Widget _item(String title, String subtitle, {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(left: w(16)),
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(),
Text(
subtitle,
style: TextStyle(
color: MyColours.color_515151,
fontSize: ScreenUtil().setWidth(32)),
),
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),
),
)
],
)));
}
//查看大图
_showPhotoView(BuildContext context, int index, List imgs,
{isShow = false, List dashName}) async {
// if (imgs.length == 1 &&
// imgs[0] ==
// 'http://nosqn.colorcun.com/custom/lite-online/image/def-banner.png') {
// imgs[0] = 'http://nosqn.colorcun.com/app/seller-hj-empty.png';
// }
Utils.setBarStatus(false, color: Colors.black);
dynamic result = await showGeneralDialog(
context: context,
barrierDismissible: false,
// barrierColor: Colors.red,
barrierLabel:
MaterialLocalizations.of(context).modalBarrierDismissLabel,
transitionDuration: const Duration(milliseconds: 150),
pageBuilder: (BuildContext context, Animation animation,
Animation secondaryAnimation) {
Widget child = Stack(
children: <Widget>[
PhotoPreview(
initialIndex: index,
photoList: imgs,
isShow: isShow,
dashName: dashName)
],
);
return child;
});
Utils.setBarStatus(true, color: Colors.white);
}
// _getCookbookByClass({bool showLoading = true}) async {
// Map<String, String> params = {
// "sellerid": Provider.of<UserModel>(context, listen: false).user.sellerid,
// };
// await menuManageProvider.getCookbookByClass(context, params,
// showLoading: showLoading);
// _handleData();
// }
///处理数据
_handleData({isMove = false}) {
if (widget.menuModel != null) {
List<MenuModel> temp = [];
for (int i = 0; i < widget.menuModel.length; i++) {
List<dynamic> listSub = [];
// if (widget.menuModel[i].cookbooklist.length > 0 &&
// widget.menuModel[i].cookbooklist[0].indexNew == null &&
// !isMove) {
// //没有设置过顺序
// for (int j = 0;
// j < widget.menuModel[i].cookbooklist.length;
// j++) {
// widget.menuModel[i].cookbooklist[j].indexNew = j; //初始化菜单顺序
// }
// }
for (int j = 0; j < widget.menuModel[i].cookbooklist.length; j++) {
MenuSunModel menuSunModel = widget.menuModel[i].cookbooklist[j];
if (menuSunModel.imageType == '1') {
//大图
menuSunModel.indexNew = j;
listSub.add(menuSunModel);
} else {
//小图
//判断下一个是大图还是小图
if (widget.menuModel[i].cookbooklist.length - 1 > j) {
if (widget.menuModel[i].cookbooklist[j + 1].imageType == '1') {
//下一个是大图
menuSunModel.indexNew = j;
listSub.add(menuSunModel);
} else {
//下一个是小图
List<MenuSunModel> subTemp = [];
menuSunModel.indexNew = j;
subTemp.add(menuSunModel);
widget.menuModel[i].cookbooklist[j + 1].indexNew = j + 1;
subTemp.add(widget.menuModel[i].cookbooklist[j + 1]);
listSub.add(subTemp);
j++;
}
} else {
menuSunModel.indexNew = j;
listSub.add(menuSunModel);
}
}
}
widget.menuModel[i].cookbooklistShow = listSub;
temp.add(widget.menuModel[i]);
}
menuModelTemp = temp;
setState(() {});
}
}
//左边
Widget _topLeft(MenuSunModel model) {
return Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
model.name,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(20),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
]),
),
VEmptyView(20),
Text('味型:咸鲜 烹调:熬煮',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(12),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
])),
VEmptyView(20),
Text(
'¥${model.price}/${model.unit} 会员 ¥${model.price}/${model.unit} ',
textAlign: TextAlign.right,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(14),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
]),
),
],
),
);
}
//右边
Widget _topRight(MenuSunModel model) {
return Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
Text(
model.name,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(20),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
]),
),
VEmptyView(20),
Text('味型:咸鲜 烹调:熬煮',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(12),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
])),
VEmptyView(20),
Text(
'¥${model.price}/${model.unit} 会员 ¥${model.price}/${model.unit} ',
textAlign: TextAlign.right,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(14),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
]),
),
],
),
);
}
//顶部分开
Widget _topBetween(MenuSunModel model) {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
width: w(134),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
model.name,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(20),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
]),
),
VEmptyView(20),
Text('味型:咸鲜 烹调:熬煮',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(12),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
]))
],
),
),
HEmptyView(10),
Text(
'¥${model.price}/${model.unit} 会员 ¥${model.price}/${model.unit} ',
textAlign: TextAlign.right,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(14),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
]),
),
],
);
}
Widget _smallMenu(MenuSunModel model, ThemeColorModel themeColerModel) {
return Container(
width: ScreenUtil().screenWidth / 2,
color: themeColerModel.color,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
VEmptyView(30),
Padding(
padding: EdgeInsets.symmetric(horizontal: w(10)),
child: Text(
model.name,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(20),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
]),
)),
VEmptyView(20),
Padding(
padding: EdgeInsets.symmetric(horizontal: w(10)),
child: Text(
'味型:咸鲜 烹调:熬煮',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(12),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
]),
)),
VEmptyView(20),
Padding(
padding: EdgeInsets.symmetric(horizontal: w(10)),
child: Text(
'¥${model.price}/${model.unit} 会员 ¥${model.price}/${model.unit} ',
textAlign: TextAlign.right,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: font(14),
color: MyColours.color_515151,
shadows: [
BoxShadow(
color: MyColours.color_FBF6F1,
offset: Offset(0, 1),
blurRadius: w(2),
spreadRadius: w(20))
]),
)),
VEmptyView(30),
if (model.image != null)
CachedNetworkImage(
imageUrl: model.image,
fit: BoxFit.cover,
width: ScreenUtil().screenWidth / 2,
height: w(125),
),
if (true)
Padding(
padding: EdgeInsets.symmetric(horizontal: w(10), vertical: w(10)),
child: Text(
'江南传统名菜,口味咸鲜,汤白汁浓,肉质酥肥,笋清香脆嫩,鲜味浓厚。',
style: TextStyle(
color: themeColerModel.name == '珍珠白'
? MyColours.color_515151
: MyColours.color_FBF6F1,
fontSize: font(12)),
),
),
Align(
alignment: Alignment.centerRight,
child: Padding(
padding:
EdgeInsets.only(right: w(20), top: w(19), bottom: w(19)),
child: Image.asset(
Utils.getImgPath('add_store'),
width: w(22),
),
)),
],
),
);
}
@override
Widget build(BuildContext context) {
ThemeColorModel themeColerModel = themeColorData[themeColorIndex];
// menuManageProvider = Provider.of<MenuManageProvider>(context, listen: true);
return Scaffold(
backgroundColor: MyColours.color_ffffff,
appBar: SystemAppBar(
'菜单管理配置',
onTap: () {
Navigator.pop(context);
},
),
body: Column(
children: [
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
_item('客人所见菜单主题颜色选择', themeColerModel.name, onTap: () {
DialogUtil.showMenuThemeColorSelectDialog(
context, themeColorData, callback: (object) {
print(object);
setState(() {
themeColorIndex = object;
});
});
}),
VEmptyView(24),
Container(
height: w(48),
alignment: Alignment.centerLeft,
padding: EdgeInsets.symmetric(horizontal: w(16)),
child: Text(
'效果预览',
style: TextStyle(
color: MyColours.color_515151,
fontSize: ScreenUtil().setWidth(32)),
),
),
VEmptyView(24),
menuModelTemp == null || menuModelTemp.length == 0
? Expanded(
child: Container(
color: MyColours.color_ffffff,
padding: EdgeInsets.symmetric(horizontal: w(20)),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
VEmptyView(222),
Text(
'您还没有创建菜谱!',
style: TextStyle(
height: 1.3,
color: MyColours.color_515151,
fontSize: font(16),
fontWeight: FontWeight.bold),
),
],
),
))
:
// double cellWidth = (MediaQuery.of(context).size.width -
// ScreenUtil().setWidth(40 * 2 + 15 * 2) / 2);
// double desiredCellHeight = ScreenUtil().setWidth(700);
// double childAspectRatio = cellWidth / desiredCellHeight;
ListView.builder(
itemCount: menuModelTemp.length,
shrinkWrap: true,
controller: _controller,
itemBuilder: (BuildContext context, int indexOut) {
Color classNameColor = themeColerModel.name == '珍珠白'
? MyColours.color_515151
: MyColours.color_FBF6F1;
return Column(
children: [
Container(
height: w(32),
color: themeColerModel.color,
margin: EdgeInsets.only(bottom: (w(2))),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
width: ScreenUtil().setWidth(10),
height: ScreenUtil().setWidth(10),
decoration: BoxDecoration(
color: classNameColor,
shape: BoxShape.circle),
),
MyDivider(ScreenUtil().setWidth(80),
ScreenUtil().setWidth(2),
color: classNameColor),
HEmptyView(20),
Text(
menuModelTemp[indexOut].className,
style: TextStyle(
color: classNameColor,
fontSize: ScreenUtil().setSp(28),
),
),
HEmptyView(20),
MyDivider(ScreenUtil().setWidth(80),
ScreenUtil().setWidth(2),
color: classNameColor),
Container(
width: ScreenUtil().setWidth(10),
height: ScreenUtil().setWidth(10),
decoration: BoxDecoration(
color: classNameColor,
shape: BoxShape.circle),
),
],
)),
ListView.builder(
itemCount: menuModelTemp[indexOut]
.cookbooklistShow
.length,
shrinkWrap: true,
controller: _controller,
itemBuilder: (context, index) {
if (menuModelTemp[indexOut]
.cookbooklistShow[index]
is MenuSunModel) {
MenuSunModel model =
menuModelTemp[indexOut]
.cookbooklistShow[index];
if (model.imageType == '2') {
//小图
return Padding(
padding:
EdgeInsets.only(bottom: w(2)),
child: Stack(
children: [
_smallMenu(
model, themeColerModel),
Positioned(
bottom: ScreenUtil()
.setWidth(14),
// right: ScreenUtil().setWidth(20),
child: model.status == '1'
? SizedBox()
: Image.asset(
Utils.getImgPath(
'stop-sell'),
width: ScreenUtil()
.setWidth(182),
// height: ScreenUtil()
// .setWidth(52),
))
],
));
}
return Stack(children: [
Container(
color: themeColerModel.color,
margin:
EdgeInsets.only(bottom: (w(2))),
child: Column(
crossAxisAlignment: model
.imageType !=
'2' &&
model.nameType == '1'
? CrossAxisAlignment.start
: model.imageType != '2' &&
model.nameType == '2'
? CrossAxisAlignment.end
: CrossAxisAlignment.center,
children: [
Container(
padding: EdgeInsets.only(
top: w(20),
left: w(20),
right: w(20),
bottom: w(15)),
child: model.imageType !=
'2' &&
model.nameType == '3'
? _topBetween(model)
: model.imageType !=
'2' &&
model.nameType ==
'2'
? _topRight(model)
: model.imageType !=
'2' &&
model.nameType ==
'1'
? _topLeft(model)
: _topLeft(
model)),
if (model.image != null)
CachedNetworkImage(
imageUrl: model.image,
fit: BoxFit.cover,
width: double.infinity,
height: w(250),
),
if (true)
Padding(
padding: EdgeInsets.symmetric(
horizontal: w(16),
vertical: w(10)),
child: Text(
'江南传统名菜,口味咸鲜,汤白汁浓,肉质酥肥,笋清香脆嫩,鲜味浓厚。',
style: TextStyle(
color: themeColerModel
.name ==
'珍珠白'
? MyColours
.color_515151
: MyColours
.color_FBF6F1,
fontSize: font(12)),
),
),
Align(
alignment:
Alignment.centerRight,
child: Padding(
padding: EdgeInsets.only(
right: w(40),
top: w(19),
bottom: w(19)),
child: Image.asset(
Utils.getImgPath(
'add_store'),
width: w(22),
),
))
],
),
),
Positioned(
bottom: ScreenUtil().setWidth(14),
right: ScreenUtil().setWidth(20),
child: model.status == '1'
? SizedBox()
: Image.asset(
Utils.getImgPath(
'stop-sell'),
width: ScreenUtil()
.setWidth(182),
// height: ScreenUtil()
// .setWidth(52),
)),
]);
} else if (menuModelTemp[indexOut]
.cookbooklistShow[index] is List) {
List<MenuSunModel> temp = widget
.menuModel[indexOut]
.cookbooklistShow[index];
return Padding(
padding:
EdgeInsets.only(bottom: w(2)),
child: Row(
children: [
Expanded(
flex: 1,
child: Stack(
children: [
_smallMenu(temp[0],
themeColerModel),
Positioned(
bottom: ScreenUtil()
.setWidth(14),
// right: ScreenUtil().setWidth(20),
child:
temp[0].status ==
'1'
? SizedBox()
: Image.asset(
Utils.getImgPath(
'stop-sell'),
width: ScreenUtil()
.setWidth(
182),
// height: ScreenUtil()
// .setWidth(52),
))
],
)),
HEmptyView(4),
Expanded(
flex: 1,
child: Stack(
children: [
_smallMenu(temp[1],
themeColerModel),
Positioned(
bottom: ScreenUtil()
.setWidth(14),
// right: ScreenUtil().setWidth(20),
child:
temp[1].status ==
'1'
? SizedBox()
: Image.asset(
Utils.getImgPath(
'stop-sell'),
width: ScreenUtil()
.setWidth(
182),
// height: ScreenUtil()
// .setWidth(52),
))
],
))
],
));
}
})
],
);
})
],
),
)),
Container(
color: MyColours.color_ffffff,
padding: EdgeInsets.only(
left: w(45), right: w(45), top: w(12), bottom: w(25)),
child: RoundButton(
text: '保存',
gradientStart: MyColours.color_199095,
gradientEnd: MyColours.color_199095,
// borderColor: MyColours.color_999999,
radius: r(5),
fontSize: 34,
height: w(40),
isBold: true,
onPressed: () async {
// App.sp.setInt(
// "themeColor", themeColorData[themeColorIndex].color.value);
//接口
Map homeData = {
'theme_color':
themeColorData[themeColorIndex].color.value.toString(),
'red': themeColorData[themeColorIndex].color.red,
'green': themeColorData[themeColorIndex].color.green,
'blue': themeColorData[themeColorIndex].color.blue,
'alpha': themeColorData[themeColorIndex].color.opacity,
};
Map<String, String> params = {
'sid': Provider.of<UserModel>(context, listen: false)
.user
.sellerid,
'home': json.encode(homeData)
};
// bool success = await menuManageProvider
// .setSellerTemplateConf(context, params, showLoading: true);
// if (success) {
// Utils.showToast('保存成功');
// Navigator.pop(context);
// }
},
),
)
],
),
);
}
}
... ...
import 'package:flutter/material.dart';
class MyColours {
static const Color color_3E6F51 = Color(0xFF3E6F51);
static const Color color_877952 = Color(0xFF877952);
static const Color color_FBF6F1 = Color(0xFFFBF6F1);
static const Color color_4D4E50 = Color(0xFF4D4E50);
static const Color color_00715F = Color(0xFF00715F);
static const Color color_80D9D9D9 = Color(0x80D9D9D9);
... ...
... ... @@ -1669,4 +1669,15 @@ class NavigatorUtil {
return _navigateTo(context, "${Routes.menu_dish_method_page}",
replace: replace);
}
///菜单管理-----菜单管理配置
static Future<dynamic> goMenuThemeColorSetPage(
BuildContext context,
Map object, {
replace = false,
}) {
return _navigateTo(context,
"${Routes.menu_theme_color_set_page}?object=${FluroConvertUtils.object2string(object)}",
replace: replace);
}
}
... ...
... ... @@ -200,6 +200,7 @@ import '../pages/my/marketing_center/recharge/recharge_select_store_coupon_page.
import '../pages/my/menu_type/menu_add_dishes_page.dart';
import '../pages/my/menu_type/menu_dish_method_page.dart';
import '../pages/my/menu_type/menu_manage_page.dart';
import '../pages/my/menu_type/menu_theme_color_set_page.dart';
import '../pages/my/menu_type/menu_unit_page.dart';
import '../pages/my/plan_dish/final_plan_dish_page.dart';
import '../pages/my/plan_dish/my_plan_dish_home_page.dart';
... ... @@ -2672,8 +2673,6 @@ var menuSetPricePageHandle = new Handler(
create: (_) => MenuManageProvider(), child: MenuSetPricePage());
});
///菜单管理--配置销售单位
var menuUnitPageHandle = new Handler(
handlerFunc: (BuildContext context, Map<dynamic, List<Object>> params) {
... ... @@ -2684,7 +2683,6 @@ var menuUnitPageHandle = new Handler(
create: (_) => MenuManageProvider(), child: MenuUnitPage());
});
///菜单管理--做法
var menuDishMethodPageHandle = new Handler(
handlerFunc: (BuildContext context, Map<dynamic, List<Object>> params) {
... ... @@ -2694,3 +2692,19 @@ var menuDishMethodPageHandle = new Handler(
return ChangeNotifierProvider<MenuManageProvider>(
create: (_) => MenuManageProvider(), child: MenuDishMethodPage());
});
///菜单管理--菜单管理配置
var menuThemeColorSetPageHandle = new Handler(
handlerFunc: (BuildContext context, Map<dynamic, List<Object>> params) {
List<MenuModel> res = [];
if (params.keys.contains('object')) {
Map object = FluroConvertUtils.string2map(params["object"].first);
List temp = object['object'];
for (var item in temp) {
res.add(MenuModel.fromJson2(item));
}
}
return ChangeNotifierProvider<MenuManageProvider>(
create: (_) => MenuManageProvider(), child: MenuThemeColorSetPage(menuModel:res));
});
... ...
... ... @@ -244,9 +244,10 @@ class Routes {
static String menu_unit_page = "/menu_unit_page"; //菜单管理---配置销售单位
static String menu_dish_method_page = "/menu_dish_method_page"; //菜单管理---做法
static String menu_dish_method_page = "/menu_dish_method_page"; //菜单管理---做法
static String menu_theme_color_set_page =
"/menu_theme_color_set_page"; //菜单管理---菜单管理配置
static void configureRoutes(FluroRouter router) {
router.notFoundHandler = new Handler(
... ... @@ -470,8 +471,8 @@ class Routes {
router.define(order_share_page, handler: orderSharePageHandle);
router.define(menu_set_price_page, handler: menuSetPricePageHandle);
router.define(menu_unit_page, handler: menuUnitPageHandle);
router.define(menu_dish_method_page,handler: menuDishMethodPageHandle);
router.define(menu_dish_method_page, handler: menuDishMethodPageHandle);
router.define(menu_theme_color_set_page, handler: menuThemeColorSetPageHandle);
}
}
... ...
... ... @@ -5166,6 +5166,129 @@ class DialogUtil {
});
}
//菜单主题颜色选择弹框
static showMenuThemeColorSelectDialog(
BuildContext context, List<ThemeColorModel> themeColorData,
{CustomCallBack callback}) {
return showModalBottomSheet(
context: context,
isScrollControlled: true,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(30), topRight: Radius.circular(30)),
),
builder: (context) {
Widget widget = Container(
width: double.infinity,
// height: w(536),
color: MyColours.color_ffffff,
child: Stack(children: [
SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
VEmptyView(174),
ListView.builder(
shrinkWrap: true,
itemCount: themeColorData.length,
itemBuilder: (context, index) {
return InkWell(
onTap: () {
Navigator.pop(context);
callback(index);
},
child: Container(
decoration: themeColorData[index].name != '珍珠白'
? BoxDecoration(
color: themeColorData[index].color,
)
: BoxDecoration(
color: themeColorData[index].color,
border: Border.all(
width: w(1),
color: MyColours.color_515151)),
width: double.infinity,
height: w(90),
margin: EdgeInsets.only(
left: w(30), right: w(30), bottom: w(8)),
padding:
EdgeInsets.only(left: w(10), top: w(13)),
child: Container(
width: w(61),
height: w(27),
child: Text(themeColorData[index].name,
style: TextStyle(
color: themeColorData[index].name ==
'珍珠白'
? MyColours.color_515151
: MyColours.color_ffffff,
fontWeight: FontWeight.bold,
fontSize: font(16))))));
}),
// InkWell(
// onTap: () {
// Navigator.pop(context);
// callback(0);
// },
// child: Container(
// width: double.infinity,
// height: w(106),
// color: themeColorData[0].color,
// margin: EdgeInsets.symmetric(horizontal: w(30)),
// padding: EdgeInsets.only(left: w(10), top: w(13)),
// child: Container(
// width: w(61),
// height: w(27),
// child: Text(themeColorData[0].name,
// style: TextStyle(
// color: MyColours.color_ffffff,
// fontWeight: FontWeight.bold,
// fontSize: font(16)))))),
// VEmptyView(56),
// VEmptyView(56),
// InkWell(
// onTap: () {
// Navigator.pop(context);
// callback(2);
// },
// child: Container(
// color: themeColorData[2].color,
// width: double.infinity,
// height: w(106),
// margin: EdgeInsets.symmetric(horizontal: w(30)),
// padding: EdgeInsets.only(left: w(10), top: w(13)),
// child: Container(
// width: w(61),
// height: w(27),
// child: Text(themeColorData[2].name,
// style: TextStyle(
// color: MyColours.color_ffffff,
// fontWeight: FontWeight.bold,
// fontSize: font(16)))))),
VEmptyView(66),
],
)),
Positioned(
right: w(10),
top: w(25),
child: InkWell(
onTap: () {
Navigator.pop(context);
},
child: Padding(
padding: EdgeInsets.symmetric(horizontal: w(18)),
child: Text("取消",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: ScreenUtil().setSp(32),
color: MyColours.color_000000)),
))),
]),
);
return widget;
});
}
//主题颜色选择弹框
static showThemeColorSelectDialog(
BuildContext context, List<ThemeColorModel> themeColorData,
... ...