|
...
|
...
|
@@ -507,57 +507,120 @@ class _MarkingPreviewPageState extends State<MarkingPreviewPage> { |
|
|
|
Color textColor = MyColours.color_515151,
|
|
|
|
Color hintColor = MyColours.color_999999,
|
|
|
|
BoxDecoration boxDecoration}) {
|
|
|
|
return Container(
|
|
|
|
width: width,
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
padding: edgeInsets,
|
|
|
|
decoration: boxDecoration,
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'Introduce',
|
|
|
|
style: TextStyle(color: MyColours.color_B39437, fontSize: font(14)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'品牌介绍',
|
|
|
|
style: TextStyle(color: MyColours.color_B39437, fontSize: font(14)),
|
|
|
|
),
|
|
|
|
VEmptyView(16),
|
|
|
|
Text(
|
|
|
|
'${_marketingCenterProvider.markDataModel.store.sellerName}',
|
|
|
|
style: TextStyle(color: textColor, fontSize: font(14)),
|
|
|
|
),
|
|
|
|
VEmptyView(32),
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
// margin: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
// padding: EdgeInsets.symmetric(horizontal: w(6)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
left: BorderSide(
|
|
|
|
width: w(2), color: MyColours.color_EEAE74))),
|
|
|
|
child: Container(
|
|
|
|
Widget container;
|
|
|
|
if (edgeInsets.top == w(23)) {
|
|
|
|
//图文合并
|
|
|
|
container = Container(
|
|
|
|
width: width,
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(_uploadImageProvider.imgSizefirstImage * 2),
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
padding: edgeInsets,
|
|
|
|
decoration: boxDecoration,
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'Introduce',
|
|
|
|
style:
|
|
|
|
TextStyle(color: MyColours.color_B39437, fontSize: font(14)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'品牌介绍',
|
|
|
|
style:
|
|
|
|
TextStyle(color: MyColours.color_B39437, fontSize: font(14)),
|
|
|
|
),
|
|
|
|
VEmptyView(16),
|
|
|
|
Text(
|
|
|
|
'${_marketingCenterProvider.markDataModel.store.sellerName}',
|
|
|
|
style: TextStyle(color: textColor, fontSize: font(14)),
|
|
|
|
),
|
|
|
|
VEmptyView(32),
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(12),
|
|
|
|
),
|
|
|
|
alignment: Alignment.topLeft,
|
|
|
|
child: Text(
|
|
|
|
_marketingCenterProvider.markDataModel.store.introduce,
|
|
|
|
style: TextStyle(
|
|
|
|
height: 2,
|
|
|
|
color: textColor,
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
textBaseline: TextBaseline.alphabetic),
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
maxLines: 7,
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
// margin: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
// padding: EdgeInsets.symmetric(horizontal: w(6)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
left: BorderSide(
|
|
|
|
width: w(2), color: MyColours.color_EEAE74))),
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(12),
|
|
|
|
),
|
|
|
|
alignment: Alignment.topLeft,
|
|
|
|
child: Text(
|
|
|
|
_marketingCenterProvider.markDataModel.store.introduce,
|
|
|
|
style: TextStyle(
|
|
|
|
height: 2,
|
|
|
|
color: textColor,
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
textBaseline: TextBaseline.alphabetic),
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
maxLines: 7,
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
container = Container(
|
|
|
|
width: width,
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
padding: edgeInsets,
|
|
|
|
decoration: boxDecoration,
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'Introduce',
|
|
|
|
style:
|
|
|
|
TextStyle(color: MyColours.color_B39437, fontSize: font(14)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'品牌介绍',
|
|
|
|
style:
|
|
|
|
TextStyle(color: MyColours.color_B39437, fontSize: font(14)),
|
|
|
|
),
|
|
|
|
VEmptyView(16),
|
|
|
|
Text(
|
|
|
|
'${_marketingCenterProvider.markDataModel.store.sellerName}',
|
|
|
|
style: TextStyle(color: textColor, fontSize: font(14)),
|
|
|
|
),
|
|
|
|
VEmptyView(32),
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
// margin: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
// padding: EdgeInsets.symmetric(horizontal: w(6)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
left: BorderSide(
|
|
|
|
width: w(2), color: MyColours.color_EEAE74))),
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(12),
|
|
|
|
),
|
|
|
|
alignment: Alignment.topLeft,
|
|
|
|
child: Text(
|
|
|
|
_marketingCenterProvider.markDataModel.store.introduce,
|
|
|
|
style: TextStyle(
|
|
|
|
height: 2,
|
|
|
|
color: textColor,
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
textBaseline: TextBaseline.alphabetic),
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
return container;
|
|
|
|
}
|
|
|
|
|
|
|
|
///无文字
|
|
...
|
...
|
@@ -765,71 +828,148 @@ class _MarkingPreviewPageState extends State<MarkingPreviewPage> { |
|
|
|
Color textColor = MyColours.color_515151,
|
|
|
|
Color hintColor = MyColours.color_999999,
|
|
|
|
BoxDecoration boxDecoration}) {
|
|
|
|
return Container(
|
|
|
|
width: width,
|
|
|
|
// height: _uploadImageProvider.imgSizefirstImage,
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
padding: edgeInsets,
|
|
|
|
decoration: boxDecoration,
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'Chief Cook',
|
|
|
|
style: TextStyle(color: MyColours.color_B39437, fontSize: font(14)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'知名主厨',
|
|
|
|
style: TextStyle(color: MyColours.color_B39437, fontSize: font(14)),
|
|
|
|
),
|
|
|
|
VEmptyView(16),
|
|
|
|
// Text(
|
|
|
|
// '${sellername}',
|
|
|
|
// style: TextStyle(color: textColor, fontSize: font(14)),
|
|
|
|
// ),
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
alignment: Alignment.topRight,
|
|
|
|
child: Text(
|
|
|
|
_marketingCenterProvider.markDataModel.chef.chefName,
|
|
|
|
textAlign: TextAlign.right,
|
|
|
|
style: TextStyle(
|
|
|
|
color: textColor,
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
textBaseline: TextBaseline.alphabetic),
|
|
|
|
maxLines: 1,
|
|
|
|
Widget container;
|
|
|
|
if (edgeInsets.top == w(23)) {
|
|
|
|
//图文合并
|
|
|
|
container = Container(
|
|
|
|
width: width,
|
|
|
|
// height: _uploadImageProvider.imgSizefirstImage,
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(_uploadImageProvider.imgSizefirstImage * 2),
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
padding: edgeInsets,
|
|
|
|
decoration: boxDecoration,
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'Chief Cook',
|
|
|
|
style:
|
|
|
|
TextStyle(color: MyColours.color_B39437, fontSize: font(14)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(32),
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
// margin: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
// padding: EdgeInsets.symmetric(horizontal: w(6)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
right: BorderSide(
|
|
|
|
width: w(2), color: MyColours.color_EEAE74))),
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(12),
|
|
|
|
),
|
|
|
|
alignment: Alignment.topRight,
|
|
|
|
child: Text(
|
|
|
|
_marketingCenterProvider.markDataModel.chef.introduce,
|
|
|
|
textAlign: TextAlign.right,
|
|
|
|
style: TextStyle(
|
|
|
|
height: 2,
|
|
|
|
color: textColor,
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
textBaseline: TextBaseline.alphabetic),
|
|
|
|
maxLines: 7,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
Text(
|
|
|
|
'知名主厨',
|
|
|
|
style:
|
|
|
|
TextStyle(color: MyColours.color_B39437, fontSize: font(14)),
|
|
|
|
),
|
|
|
|
VEmptyView(16),
|
|
|
|
// Text(
|
|
|
|
// '${sellername}',
|
|
|
|
// style: TextStyle(color: textColor, fontSize: font(14)),
|
|
|
|
// ),
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
alignment: Alignment.topRight,
|
|
|
|
child: Text(
|
|
|
|
_marketingCenterProvider.markDataModel.chef.chefName,
|
|
|
|
textAlign: TextAlign.right,
|
|
|
|
style: TextStyle(
|
|
|
|
color: textColor,
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
textBaseline: TextBaseline.alphabetic),
|
|
|
|
maxLines: 1,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(32),
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
// margin: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
// padding: EdgeInsets.symmetric(horizontal: w(6)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
right: BorderSide(
|
|
|
|
width: w(2), color: MyColours.color_EEAE74))),
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(12),
|
|
|
|
),
|
|
|
|
alignment: Alignment.topRight,
|
|
|
|
child: Text(
|
|
|
|
_marketingCenterProvider.markDataModel.chef.introduce,
|
|
|
|
textAlign: TextAlign.right,
|
|
|
|
style: TextStyle(
|
|
|
|
height: 2,
|
|
|
|
color: textColor,
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
textBaseline: TextBaseline.alphabetic),
|
|
|
|
maxLines: 7,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
container = Container(
|
|
|
|
width: width,
|
|
|
|
// height: _uploadImageProvider.imgSizefirstImage,
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
padding: edgeInsets,
|
|
|
|
decoration: boxDecoration,
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'Chief Cook',
|
|
|
|
style:
|
|
|
|
TextStyle(color: MyColours.color_B39437, fontSize: font(14)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'知名主厨',
|
|
|
|
style:
|
|
|
|
TextStyle(color: MyColours.color_B39437, fontSize: font(14)),
|
|
|
|
),
|
|
|
|
VEmptyView(16),
|
|
|
|
// Text(
|
|
|
|
// '${sellername}',
|
|
|
|
// style: TextStyle(color: textColor, fontSize: font(14)),
|
|
|
|
// ),
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
alignment: Alignment.topRight,
|
|
|
|
child: Text(
|
|
|
|
_marketingCenterProvider.markDataModel.chef.chefName,
|
|
|
|
textAlign: TextAlign.right,
|
|
|
|
style: TextStyle(
|
|
|
|
color: textColor,
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
textBaseline: TextBaseline.alphabetic),
|
|
|
|
maxLines: 1,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(32),
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
// margin: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
// padding: EdgeInsets.symmetric(horizontal: w(6)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
right: BorderSide(
|
|
|
|
width: w(2), color: MyColours.color_EEAE74))),
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(12),
|
|
|
|
),
|
|
|
|
alignment: Alignment.topRight,
|
|
|
|
child: Text(
|
|
|
|
_marketingCenterProvider.markDataModel.chef.introduce,
|
|
|
|
textAlign: TextAlign.right,
|
|
|
|
style: TextStyle(
|
|
|
|
height: 2,
|
|
|
|
color: textColor,
|
|
|
|
fontSize: ScreenUtil().setSp(20),
|
|
|
|
textBaseline: TextBaseline.alphabetic),
|
|
|
|
// maxLines: 7,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
return container;
|
|
|
|
}
|
|
|
|
|
|
|
|
///招牌菜展示
|
|
...
|
...
|
@@ -1129,70 +1269,75 @@ class _MarkingPreviewPageState extends State<MarkingPreviewPage> { |
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: w(20), right: w(20), top: w(12), bottom: w(25)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
children: [
|
|
|
|
_marketingCenterProvider.markDataModel.marketing != null &&
|
|
|
|
_marketingCenterProvider
|
|
|
|
.markDataModel.marketing.isOnlineBook ==
|
|
|
|
'1'
|
|
|
|
? RoundButton(
|
|
|
|
text: '再次预订',
|
|
|
|
width: w(100),
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
borderColor: MyColours.color_0143A3,
|
|
|
|
textColor: MyColours.color_0143A3,
|
|
|
|
radius: r(21),
|
|
|
|
fontSize: 32,
|
|
|
|
height: w(42),
|
|
|
|
isBold: true,
|
|
|
|
onPressed: () async {},
|
|
|
|
)
|
|
|
|
: SizedBox(),
|
|
|
|
_marketingCenterProvider.markDataModel.marketing != null &&
|
|
|
|
_marketingCenterProvider
|
|
|
|
.markDataModel.marketing.isArrival ==
|
|
|
|
'1'
|
|
|
|
? RoundButton(
|
|
|
|
text: '确认赴约',
|
|
|
|
width: w(100),
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
borderColor: MyColours.color_0143A3,
|
|
|
|
textColor: MyColours.color_0143A3,
|
|
|
|
radius: r(21),
|
|
|
|
fontSize: 32,
|
|
|
|
height: w(42),
|
|
|
|
isBold: true,
|
|
|
|
onPressed: () async {},
|
|
|
|
)
|
|
|
|
: SizedBox(),
|
|
|
|
Container(
|
|
|
|
if (_marketingCenterProvider.markDataModel.marketing !=
|
|
|
|
null &&
|
|
|
|
_marketingCenterProvider
|
|
|
|
.markDataModel.marketing.isOnlineBook ==
|
|
|
|
'1')
|
|
|
|
RoundButton(
|
|
|
|
text: '再次预订',
|
|
|
|
width: w(100),
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
borderColor: MyColours.color_0143A3,
|
|
|
|
textColor: MyColours.color_0143A3,
|
|
|
|
radius: r(21),
|
|
|
|
fontSize: 32,
|
|
|
|
height: w(42),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(r(21)),
|
|
|
|
gradient: LinearGradient(
|
|
|
|
stops: [
|
|
|
|
-0.57,
|
|
|
|
0.55,
|
|
|
|
1.48
|
|
|
|
],
|
|
|
|
colors: [
|
|
|
|
MyColours.color_4C8DAD,
|
|
|
|
MyColours.color_0143A3,
|
|
|
|
MyColours.color_42A5FF
|
|
|
|
],
|
|
|
|
begin: Alignment.topLeft,
|
|
|
|
end: Alignment.bottomRight)),
|
|
|
|
child: Text(
|
|
|
|
'转发给客人',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(16),
|
|
|
|
color: MyColours.color_F8F9FD,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
)),
|
|
|
|
isBold: true,
|
|
|
|
onPressed: () async {},
|
|
|
|
),
|
|
|
|
if (_marketingCenterProvider.markDataModel.marketing !=
|
|
|
|
null &&
|
|
|
|
_marketingCenterProvider
|
|
|
|
.markDataModel.marketing.isArrival ==
|
|
|
|
'1')
|
|
|
|
RoundButton(
|
|
|
|
text: '确认赴约',
|
|
|
|
width: w(100),
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
borderColor: MyColours.color_0143A3,
|
|
|
|
textColor: MyColours.color_0143A3,
|
|
|
|
radius: r(21),
|
|
|
|
fontSize: 32,
|
|
|
|
height: w(42),
|
|
|
|
isBold: true,
|
|
|
|
onPressed: () async {},
|
|
|
|
),
|
|
|
|
if (_marketingCenterProvider.markDataModel.marketing !=
|
|
|
|
null &&
|
|
|
|
_marketingCenterProvider
|
|
|
|
.markDataModel.marketing.isTranspond ==
|
|
|
|
'1')
|
|
|
|
Container(
|
|
|
|
width: w(100),
|
|
|
|
height: w(42),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(r(21)),
|
|
|
|
gradient: LinearGradient(
|
|
|
|
stops: [
|
|
|
|
-0.57,
|
|
|
|
0.55,
|
|
|
|
1.48
|
|
|
|
],
|
|
|
|
colors: [
|
|
|
|
MyColours.color_4C8DAD,
|
|
|
|
MyColours.color_0143A3,
|
|
|
|
MyColours.color_42A5FF
|
|
|
|
],
|
|
|
|
begin: Alignment.topLeft,
|
|
|
|
end: Alignment.bottomRight)),
|
|
|
|
child: Text(
|
|
|
|
'转发给客人',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(16),
|
|
|
|
color: MyColours.color_F8F9FD,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)
|
...
|
...
|
|