|
...
|
...
|
@@ -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(
|
...
|
...
|
|