Commit 3a0b9b5d6d7d19bb3e3e5c3f444652e9a2bb2c95

Authored by wdn127929
1 parent 52261556

优惠券海报定位

... ... @@ -340,7 +340,7 @@ SPEC CHECKSUMS:
AMap3DMap-NO-IDFA: 6660036f9a8c28ed3e9037936210121599055a2e
amap_core_fluttify: b84657ba39ee287a4b96bbcc0a6e67612cc3808f
amap_location_fluttify: 7dc366b959d3ea9ce0b826e60c22a15cec54bbad
amap_map_fluttify: c93fda6a5f1e10b5dc7602317d310ceab7a59bbe
amap_map_fluttify: 4eaf28184c3cac71f7cf1fb2799c919886792ca8
amap_search_fluttify: cfab91aa65730337fff54705aae0423ea752fc91
AMapFoundation-NO-IDFA: cc2ec7a2828ef292358ad594b7ee0ae21a7f097b
AMapLocation-NO-IDFA: 9d7ec9b052405356600b59fe0a9a65261bacc54e
... ...
... ... @@ -79,7 +79,7 @@ class _CouponPosterPageState extends State<CouponPosterPage> {
GlobalKey globalKey,
// {
// double pixelRatio = 2.0, //截屏的图片与原图的比例
// }
// }
) async {
try {
RenderRepaintBoundary boundary =
... ... @@ -146,12 +146,12 @@ class _CouponPosterPageState extends State<CouponPosterPage> {
// title = "${widget.couponSunModel.aname}";
name = "${widget.couponSunModel.aname}";
}
double _height = w(64);
Future.delayed(Duration(milliseconds: 200)).then((e) {
_height = globalKey.currentContext.size.height;
debugPrint('Height is ${context.size.height}');
setState(() {});
});
// double _height = w(64);
// Future.delayed(Duration(milliseconds: 200)).then((e) {
// _height = globalKey.currentContext.size.height;
// debugPrint('Height is ${context.size.height}');
// // setState(() {});
// });
return Scaffold(
appBar: SystemAppBar('优惠券详情'),
... ... @@ -169,6 +169,7 @@ class _CouponPosterPageState extends State<CouponPosterPage> {
mainAxisAlignment: MainAxisAlignment.start,
children: [
Stack(
// alignment: Alignment.bottomCenter,
clipBehavior: Clip.none,
children: [
user.sellerimage != null &&
... ... @@ -186,7 +187,7 @@ class _CouponPosterPageState extends State<CouponPosterPage> {
fit: BoxFit.cover,
),
Positioned(
bottom: _height / 2,
bottom: -w(64),
child: Container(
key: globalKey,
width: ScreenUtil().screenWidth -
... ... @@ -212,6 +213,7 @@ class _CouponPosterPageState extends State<CouponPosterPage> {
children: [
Text(
user.sellername,
maxLines: 3,
overflow: TextOverflow.ellipsis,
style: TextStyle(
color: MyColours.color_E4461D,
... ... @@ -221,6 +223,7 @@ class _CouponPosterPageState extends State<CouponPosterPage> {
VEmptyView(30),
Text(
times,
maxLines: 3,
overflow: TextOverflow.ellipsis,
style: TextStyle(
color: MyColours.color_515151,
... ... @@ -229,32 +232,37 @@ class _CouponPosterPageState extends State<CouponPosterPage> {
),
VEmptyView(10),
RichText(
maxLines: 3,
text: TextSpan(
style: TextStyle(
fontSize: ScreenUtil()
.setSp(28),
),
children: [
TextSpan(
text: '电话:',
style: TextStyle(
fontSize: font(14),
color: MyColours
.color_515151)),
TextSpan(
text: phone,
style: TextStyle(
overflow: TextOverflow
.ellipsis,
fontSize: font(14),
color: MyColours
.color_E4461D)),
])),
TextSpan(
text: '电话:',
style: TextStyle(
fontSize:
font(14),
color: MyColours
.color_515151)),
TextSpan(
text: phone,
style: TextStyle(
overflow:
TextOverflow
.ellipsis,
fontSize:
font(14),
color: MyColours
.color_E4461D)),
])),
VEmptyView(10),
Row(
children: [
Text(
address,
maxLines: 10,
overflow:
TextOverflow.ellipsis,
style: TextStyle(
... ...