Commit b2cccb07 authored by 林生雨's avatar 林生雨

Merge branch 'zx/gmFlutter' into 'test'

Zx/gm flutter

See merge request !43
parents 884fc418 c0fb6569
...@@ -34,7 +34,6 @@ class _PopView implements ICenterPicker { ...@@ -34,7 +34,6 @@ class _PopView implements ICenterPicker {
VoidCallback dismissCallback; VoidCallback dismissCallback;
double contentWidth; double contentWidth;
DiscussLowPriceModel _model = new DiscussLowPriceModel(); DiscussLowPriceModel _model = new DiscussLowPriceModel();
@override @override
Widget build(BuildContext context, int alp) { Widget build(BuildContext context, int alp) {
contentWidth = MediaQuery.of(context).size.width - 72; contentWidth = MediaQuery.of(context).size.width - 72;
...@@ -48,11 +47,6 @@ class _PopView implements ICenterPicker { ...@@ -48,11 +47,6 @@ class _PopView implements ICenterPicker {
if (data.data.second == null || data.data.first == FAIL) { if (data.data.second == null || data.data.first == FAIL) {
return errorItem(contentWidth, 308.5, () {}); return errorItem(contentWidth, 308.5, () {});
} }
RouterCenterImpl()
.findMainRouter()
.buriedEvent("popup_view", phobosData());
return Opacity( return Opacity(
opacity: alp / 255.0, opacity: alp / 255.0,
child: Container( child: Container(
...@@ -153,10 +147,9 @@ class _PopView implements ICenterPicker { ...@@ -153,10 +147,9 @@ class _PopView implements ICenterPicker {
width: contentWidth, width: contentWidth,
alignment: Alignment.center, alignment: Alignment.center,
margin: EdgeInsets.only(bottom: 25), margin: EdgeInsets.only(bottom: 25),
child: baseText( child: baseText("${_model.popViewLive.data.second.title}", 18,
"${_model.popViewLive.data.second.title}", 18, Color(0xff464646), Color(0xff464646),
bold: true, textAlign: TextAlign.center, bold: true, textAlign: TextAlign.center, maxLines: 2)),
maxLines: 2)),
Container( Container(
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(7), borderRadius: BorderRadius.circular(7),
...@@ -217,5 +210,6 @@ class _PopView implements ICenterPicker { ...@@ -217,5 +210,6 @@ class _PopView implements ICenterPicker {
_model.fetchPopviewData(this.planId, this.hospitalId, this.doctorId, () { _model.fetchPopviewData(this.planId, this.hospitalId, this.doctorId, () {
dismissCallback(); dismissCallback();
}); });
RouterCenterImpl().findMainRouter().buriedEvent("popup_view", phobosData());
} }
} }
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