Commit 2dde0e2f authored by 朱璇's avatar 朱璇

商议低价

parent 0ccb66e1
......@@ -2,11 +2,12 @@
* @Author: zx
* @Date: 2020-07-03 13:53:16
* @Last Modified by: zx
* @Last Modified time: 2020-07-03 20:49:16
* @Last Modified time: 2020-07-04 09:30:57
*/
import 'package:flutter/material.dart';
import 'package:flutter_common/commonModel/picker/base/BaseCenterPicker.dart';
import 'package:gm_flutter/commonModel/base/BaseComponent.dart';
import 'package:gm_flutter/ClueModel/page/DiscussLowPrice/DiscussLowPriceModel.dart';
class DiscussLowPricePopView {
static void showPopView(BuildContext content) {
......@@ -18,52 +19,55 @@ class DiscussLowPricePopView {
class _PopView implements ICenterPicker {
VoidCallback dismissCallback;
double contentWidth;
@override
Widget build(BuildContext context, int alp) {
contentWidth = MediaQuery.of(context).size.width - 72;
return Container(
width: 304,
alignment: Alignment.center,
width: contentWidth,
alignment: AlignmentDirectional.center,
child: Container(
child: Container(
margin: EdgeInsets.fromLTRB(0, 0, 0, 0),
child: Stack(children: <Widget>[
Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Container(
height: 42.5,
width: 304,
),
Container(
margin: EdgeInsets.only(bottom: 0),
child: Stack(children: <Widget>[
Container(
child: setupBodyView(),
),
Container(
margin: EdgeInsets.only(top: 20, left: 274),
width: 14,
height: 14,
child: GestureDetector(
onTap: () {},
child: Image.asset(
'assets/discuss_loe_price_cancel.png',
fit: BoxFit.cover),
))
]))
]),
Container(
alignment: Alignment.center,
margin: EdgeInsets.only(top: 0, left: 109.5),
width: 85,
height: 85,
color: Colors.red,
child: Image.asset('assets/discuss_loe_price_cancel.png',
fit: BoxFit.cover),
)
]),
child: Stack(
alignment: AlignmentDirectional.topCenter,
children: <Widget>[
Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Container(
height: 42.5,
width: contentWidth,
),
Container(
margin: EdgeInsets.only(bottom: 0),
child: Stack(children: <Widget>[
Container(
child: setupBodyView(),
),
Positioned(
top: 20,
right: 20,
width: 16,
height: 16,
child: GestureDetector(
onTap: () {},
child: Image.asset(
'assets/discuss_loe_price_cancel.png',
fit: BoxFit.cover),
))
]))
]),
Container(
margin: EdgeInsets.only(top: 0),
width: 85,
height: 85,
child: Image.asset('assets/discuss_loe_price_like.png',
fit: BoxFit.cover),
)
]),
)));
}
......@@ -95,7 +99,10 @@ class _PopView implements ICenterPicker {
Container(
width: 16,
height: 16,
child: Image.asset('assets/discuss_loe_price_like.png')),
child: Image.asset(
'assets/discuss_loe_price_like.png',
fit: BoxFit.cover,
)),
Container(
margin: EdgeInsets.only(left: 4),
child: baseText('对当前商品感兴趣?', 14, Color(0xff848484)),
......@@ -103,7 +110,8 @@ class _PopView implements ICenterPicker {
]),
),
Container(
width: 235,
alignment: AlignmentDirectional.center,
width: contentWidth - 70,
margin: EdgeInsets.only(bottom: 25),
child: baseText('机构可免费为您提供咨询服务', 18, Color(0xff464646),
bold: true)),
......@@ -114,7 +122,7 @@ class _PopView implements ICenterPicker {
),
alignment: Alignment.center,
margin: EdgeInsets.only(bottom: 12),
width: 235,
width: contentWidth - 70,
height: 37,
child: baseText('13800138000', 16, Color(0xff484848))),
Container(
......@@ -126,15 +134,15 @@ class _PopView implements ICenterPicker {
// FlutterBoost.singleton.closeByContext(context);
},
child: Container(
alignment: Alignment.center,
margin: EdgeInsets.only(bottom: 14),
width: 235,
width: contentWidth - 70,
height: 37,
child:
Image.asset('assets/discuss_loe_price_auth.png')))),
child: Image.asset('assets/discuss_loe_price_auth.png',
fit: BoxFit.cover)))),
Container(
width: 235,
width: contentWidth - 70,
margin: EdgeInsets.only(bottom: 25),
alignment: AlignmentDirectional.center,
child:
baseText('授权后,您的手机将以“虚拟号”方式提供给机构', 11, Color(0xff999999))),
]),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment