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

商议低价

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