Commit 3a0b9b5d6d7d19bb3e3e5c3f444652e9a2bb2c95

Authored by wdn127929
1 parent 52261556

优惠券海报定位

@@ -340,7 +340,7 @@ SPEC CHECKSUMS: @@ -340,7 +340,7 @@ SPEC CHECKSUMS:
340 AMap3DMap-NO-IDFA: 6660036f9a8c28ed3e9037936210121599055a2e 340 AMap3DMap-NO-IDFA: 6660036f9a8c28ed3e9037936210121599055a2e
341 amap_core_fluttify: b84657ba39ee287a4b96bbcc0a6e67612cc3808f 341 amap_core_fluttify: b84657ba39ee287a4b96bbcc0a6e67612cc3808f
342 amap_location_fluttify: 7dc366b959d3ea9ce0b826e60c22a15cec54bbad 342 amap_location_fluttify: 7dc366b959d3ea9ce0b826e60c22a15cec54bbad
343 - amap_map_fluttify: c93fda6a5f1e10b5dc7602317d310ceab7a59bbe 343 + amap_map_fluttify: 4eaf28184c3cac71f7cf1fb2799c919886792ca8
344 amap_search_fluttify: cfab91aa65730337fff54705aae0423ea752fc91 344 amap_search_fluttify: cfab91aa65730337fff54705aae0423ea752fc91
345 AMapFoundation-NO-IDFA: cc2ec7a2828ef292358ad594b7ee0ae21a7f097b 345 AMapFoundation-NO-IDFA: cc2ec7a2828ef292358ad594b7ee0ae21a7f097b
346 AMapLocation-NO-IDFA: 9d7ec9b052405356600b59fe0a9a65261bacc54e 346 AMapLocation-NO-IDFA: 9d7ec9b052405356600b59fe0a9a65261bacc54e
@@ -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(