|
@@ -79,7 +79,7 @@ class _CouponPosterPageState extends State<CouponPosterPage> { |
|
@@ -79,7 +79,7 @@ class _CouponPosterPageState extends State<CouponPosterPage> { |
|
79
|
GlobalKey globalKey,
|
79
|
GlobalKey globalKey,
|
|
80
|
// {
|
80
|
// {
|
|
81
|
// double pixelRatio = 2.0, //截屏的图片与原图的比例
|
81
|
// double pixelRatio = 2.0, //截屏的图片与原图的比例
|
|
82
|
- // }
|
82
|
+ // }
|
|
83
|
) async {
|
83
|
) async {
|
|
84
|
try {
|
84
|
try {
|
|
85
|
RenderRepaintBoundary boundary =
|
85
|
RenderRepaintBoundary boundary =
|
|
@@ -146,12 +146,12 @@ class _CouponPosterPageState extends State<CouponPosterPage> { |
|
@@ -146,12 +146,12 @@ class _CouponPosterPageState extends State<CouponPosterPage> { |
|
146
|
// title = "${widget.couponSunModel.aname}";
|
146
|
// title = "${widget.couponSunModel.aname}";
|
|
147
|
name = "${widget.couponSunModel.aname}";
|
147
|
name = "${widget.couponSunModel.aname}";
|
|
148
|
}
|
148
|
}
|
|
149
|
- double _height = w(64);
|
|
|
|
150
|
- Future.delayed(Duration(milliseconds: 200)).then((e) {
|
|
|
|
151
|
- _height = globalKey.currentContext.size.height;
|
|
|
|
152
|
- debugPrint('Height is ${context.size.height}');
|
|
|
|
153
|
- setState(() {});
|
|
|
|
154
|
- });
|
149
|
+ // double _height = w(64);
|
|
|
|
150
|
+ // Future.delayed(Duration(milliseconds: 200)).then((e) {
|
|
|
|
151
|
+ // _height = globalKey.currentContext.size.height;
|
|
|
|
152
|
+ // debugPrint('Height is ${context.size.height}');
|
|
|
|
153
|
+ // // setState(() {});
|
|
|
|
154
|
+ // });
|
|
155
|
|
155
|
|
|
156
|
return Scaffold(
|
156
|
return Scaffold(
|
|
157
|
appBar: SystemAppBar('优惠券详情'),
|
157
|
appBar: SystemAppBar('优惠券详情'),
|
|
@@ -169,6 +169,7 @@ class _CouponPosterPageState extends State<CouponPosterPage> { |
|
@@ -169,6 +169,7 @@ class _CouponPosterPageState extends State<CouponPosterPage> { |
|
169
|
mainAxisAlignment: MainAxisAlignment.start,
|
169
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
170
|
children: [
|
170
|
children: [
|
|
171
|
Stack(
|
171
|
Stack(
|
|
|
|
172
|
+ // alignment: Alignment.bottomCenter,
|
|
172
|
clipBehavior: Clip.none,
|
173
|
clipBehavior: Clip.none,
|
|
173
|
children: [
|
174
|
children: [
|
|
174
|
user.sellerimage != null &&
|
175
|
user.sellerimage != null &&
|
|
@@ -186,7 +187,7 @@ class _CouponPosterPageState extends State<CouponPosterPage> { |
|
@@ -186,7 +187,7 @@ class _CouponPosterPageState extends State<CouponPosterPage> { |
|
186
|
fit: BoxFit.cover,
|
187
|
fit: BoxFit.cover,
|
|
187
|
),
|
188
|
),
|
|
188
|
Positioned(
|
189
|
Positioned(
|
|
189
|
- bottom: _height / 2,
|
190
|
+ bottom: -w(64),
|
|
190
|
child: Container(
|
191
|
child: Container(
|
|
191
|
key: globalKey,
|
192
|
key: globalKey,
|
|
192
|
width: ScreenUtil().screenWidth -
|
193
|
width: ScreenUtil().screenWidth -
|
|
@@ -212,6 +213,7 @@ class _CouponPosterPageState extends State<CouponPosterPage> { |
|
@@ -212,6 +213,7 @@ class _CouponPosterPageState extends State<CouponPosterPage> { |
|
212
|
children: [
|
213
|
children: [
|
|
213
|
Text(
|
214
|
Text(
|
|
214
|
user.sellername,
|
215
|
user.sellername,
|
|
|
|
216
|
+ maxLines: 3,
|
|
215
|
overflow: TextOverflow.ellipsis,
|
217
|
overflow: TextOverflow.ellipsis,
|
|
216
|
style: TextStyle(
|
218
|
style: TextStyle(
|
|
217
|
color: MyColours.color_E4461D,
|
219
|
color: MyColours.color_E4461D,
|
|
@@ -221,6 +223,7 @@ class _CouponPosterPageState extends State<CouponPosterPage> { |
|
@@ -221,6 +223,7 @@ class _CouponPosterPageState extends State<CouponPosterPage> { |
|
221
|
VEmptyView(30),
|
223
|
VEmptyView(30),
|
|
222
|
Text(
|
224
|
Text(
|
|
223
|
times,
|
225
|
times,
|
|
|
|
226
|
+ maxLines: 3,
|
|
224
|
overflow: TextOverflow.ellipsis,
|
227
|
overflow: TextOverflow.ellipsis,
|
|
225
|
style: TextStyle(
|
228
|
style: TextStyle(
|
|
226
|
color: MyColours.color_515151,
|
229
|
color: MyColours.color_515151,
|
|
@@ -229,32 +232,37 @@ class _CouponPosterPageState extends State<CouponPosterPage> { |
|
@@ -229,32 +232,37 @@ class _CouponPosterPageState extends State<CouponPosterPage> { |
|
229
|
),
|
232
|
),
|
|
230
|
VEmptyView(10),
|
233
|
VEmptyView(10),
|
|
231
|
RichText(
|
234
|
RichText(
|
|
|
|
235
|
+ maxLines: 3,
|
|
232
|
text: TextSpan(
|
236
|
text: TextSpan(
|
|
233
|
style: TextStyle(
|
237
|
style: TextStyle(
|
|
234
|
fontSize: ScreenUtil()
|
238
|
fontSize: ScreenUtil()
|
|
235
|
.setSp(28),
|
239
|
.setSp(28),
|
|
236
|
),
|
240
|
),
|
|
237
|
children: [
|
241
|
children: [
|
|
238
|
- TextSpan(
|
|
|
|
239
|
- text: '电话:',
|
|
|
|
240
|
- style: TextStyle(
|
|
|
|
241
|
- fontSize: font(14),
|
|
|
|
242
|
- color: MyColours
|
|
|
|
243
|
- .color_515151)),
|
|
|
|
244
|
- TextSpan(
|
|
|
|
245
|
- text: phone,
|
|
|
|
246
|
- style: TextStyle(
|
|
|
|
247
|
- overflow: TextOverflow
|
|
|
|
248
|
- .ellipsis,
|
|
|
|
249
|
- fontSize: font(14),
|
|
|
|
250
|
- color: MyColours
|
|
|
|
251
|
- .color_E4461D)),
|
|
|
|
252
|
- ])),
|
242
|
+ TextSpan(
|
|
|
|
243
|
+ text: '电话:',
|
|
|
|
244
|
+ style: TextStyle(
|
|
|
|
245
|
+ fontSize:
|
|
|
|
246
|
+ font(14),
|
|
|
|
247
|
+ color: MyColours
|
|
|
|
248
|
+ .color_515151)),
|
|
|
|
249
|
+ TextSpan(
|
|
|
|
250
|
+ text: phone,
|
|
|
|
251
|
+ style: TextStyle(
|
|
|
|
252
|
+ overflow:
|
|
|
|
253
|
+ TextOverflow
|
|
|
|
254
|
+ .ellipsis,
|
|
|
|
255
|
+ fontSize:
|
|
|
|
256
|
+ font(14),
|
|
|
|
257
|
+ color: MyColours
|
|
|
|
258
|
+ .color_E4461D)),
|
|
|
|
259
|
+ ])),
|
|
253
|
VEmptyView(10),
|
260
|
VEmptyView(10),
|
|
254
|
Row(
|
261
|
Row(
|
|
255
|
children: [
|
262
|
children: [
|
|
256
|
Text(
|
263
|
Text(
|
|
257
|
address,
|
264
|
address,
|
|
|
|
265
|
+ maxLines: 10,
|
|
258
|
overflow:
|
266
|
overflow:
|
|
259
|
TextOverflow.ellipsis,
|
267
|
TextOverflow.ellipsis,
|
|
260
|
style: TextStyle(
|
268
|
style: TextStyle(
|