Commit 0a7d6d5b authored by 林生雨's avatar 林生雨

commit

parent 2070454b
...@@ -28,7 +28,9 @@ class _PopView implements ICenterPicker { ...@@ -28,7 +28,9 @@ class _PopView implements ICenterPicker {
String hospitalId; String hospitalId;
String doctorId; String doctorId;
String pageName; String pageName;
_PopView(this.pageName, this.planId, this.hospitalId, this.doctorId); _PopView(this.pageName, this.planId, this.hospitalId, this.doctorId);
VoidCallback dismissCallback; VoidCallback dismissCallback;
double contentWidth; double contentWidth;
DiscussLowPriceModel _model = new DiscussLowPriceModel(); DiscussLowPriceModel _model = new DiscussLowPriceModel();
...@@ -53,7 +55,9 @@ class _PopView implements ICenterPicker { ...@@ -53,7 +55,9 @@ class _PopView implements ICenterPicker {
opacity: alp / 255.0, opacity: alp / 255.0,
child: Container( child: Container(
width: contentWidth, width: contentWidth,
height: 308.5, height: _model.popViewLive.data.second.title.length > 13
? 357.5
: 305.5,
child: Stack( child: Stack(
alignment: AlignmentDirectional.topCenter, alignment: AlignmentDirectional.topCenter,
children: <Widget>[ children: <Widget>[
...@@ -74,21 +78,29 @@ class _PopView implements ICenterPicker { ...@@ -74,21 +78,29 @@ class _PopView implements ICenterPicker {
'assets/discuss_loe_price_cancel.png'), 'assets/discuss_loe_price_cancel.png'),
)), )),
Container( Container(
width: 85, width: 85,
height: 85, height: 85,
decoration: BoxDecoration(boxShadow: [ decoration: BoxDecoration(boxShadow: [
BoxShadow( BoxShadow(
color: Colors.black12, color: Colors.black12,
offset: Offset(0.0, 15.0), offset: Offset(0.0, 3.0),
blurRadius: 15.0, blurRadius: 15.0,
spreadRadius: 1.0) spreadRadius: 1.0)
], shape: BoxShape.circle), ], shape: BoxShape.circle),
child: ClipOval( child: Container(
child: Image.network( decoration: BoxDecoration(
_model.popViewLive.data.second.icon, shape: BoxShape.circle,
fit: BoxFit.cover), ),
), child: Image.network(
) _model.popViewLive.data.second.icon,
fit: BoxFit.cover),
)
// ClipOval(
// child: Image.network(
// _model.popViewLive.data.second.icon,
// fit: BoxFit.cover),
// ),
)
]), ]),
)); ));
}); });
...@@ -96,7 +108,6 @@ class _PopView implements ICenterPicker { ...@@ -96,7 +108,6 @@ class _PopView implements ICenterPicker {
setupBodyView() { setupBodyView() {
return Container( return Container(
height: 266,
width: contentWidth, width: contentWidth,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(7), borderRadius: BorderRadius.circular(7),
...@@ -112,6 +123,7 @@ class _PopView implements ICenterPicker { ...@@ -112,6 +123,7 @@ class _PopView implements ICenterPicker {
detailView() { detailView() {
return Column( return Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
...@@ -136,10 +148,12 @@ class _PopView implements ICenterPicker { ...@@ -136,10 +148,12 @@ class _PopView implements ICenterPicker {
]), ]),
), ),
Container( Container(
width: contentWidth,
alignment: Alignment.center,
margin: EdgeInsets.only(bottom: 25), margin: EdgeInsets.only(bottom: 25),
child: baseText( child: baseText(
_model.popViewLive.data.second.title, 18, Color(0xff464646), _model.popViewLive.data.second.title, 18, Color(0xff464646),
bold: true)), bold: true, align: TextAlign.center)),
Container( Container(
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(7), borderRadius: BorderRadius.circular(7),
...@@ -171,7 +185,6 @@ class _PopView implements ICenterPicker { ...@@ -171,7 +185,6 @@ class _PopView implements ICenterPicker {
}); });
}), }),
Container( Container(
width: contentWidth - 70,
margin: EdgeInsets.only(bottom: 23.5), margin: EdgeInsets.only(bottom: 23.5),
child: baseText('授权后,您的手机将以“虚拟号”方式提供给机构', 11, Color(0xff999999))), child: baseText('授权后,您的手机将以“虚拟号”方式提供给机构', 11, Color(0xff999999))),
]); ]);
......
...@@ -18,6 +18,7 @@ import 'package:gm_flutter/ClueModel/page/mechanismBox/MechanismBoxPage.dart'; ...@@ -18,6 +18,7 @@ import 'package:gm_flutter/ClueModel/page/mechanismBox/MechanismBoxPage.dart';
import 'package:gm_flutter/commonModel/base/BaseComponent.dart'; import 'package:gm_flutter/commonModel/base/BaseComponent.dart';
import 'package:gm_flutter/commonModel/base/BaseState.dart'; import 'package:gm_flutter/commonModel/base/BaseState.dart';
import 'package:gm_flutter/commonModel/eventbus/SimpleEventBus.dart'; import 'package:gm_flutter/commonModel/eventbus/SimpleEventBus.dart';
import 'package:gm_flutter/commonModel/net/DioUtil.dart';
import 'package:gm_flutter/commonModel/view/baseRefreshIndicator.dart'; import 'package:gm_flutter/commonModel/view/baseRefreshIndicator.dart';
import 'package:gm_flutter/main.mark.dart'; import 'package:gm_flutter/main.mark.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart'; import 'package:pull_to_refresh/pull_to_refresh.dart';
...@@ -48,6 +49,7 @@ class LevelTwoState extends BaseState<LevelTwoPage> ...@@ -48,6 +49,7 @@ class LevelTwoState extends BaseState<LevelTwoPage>
@override @override
void initState() { void initState() {
DioUtil.getInstance().setProxy("172.30.8.245");
super.initState(); super.initState();
_model.init(() { _model.init(() {
_initTabBar(); _initTabBar();
......
...@@ -71,7 +71,7 @@ AppBar _baseAppBarChangeTitle( ...@@ -71,7 +71,7 @@ AppBar _baseAppBarChangeTitle(
tag: "left_arrow", tag: "left_arrow",
child: Container( child: Container(
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
margin: EdgeInsets.only(left: 10), margin: EdgeInsets.only(left: 7),
child: Container( child: Container(
width: 30, width: 30,
height: 30, height: 30,
...@@ -86,9 +86,11 @@ AppBar _baseAppBarChangeTitle( ...@@ -86,9 +86,11 @@ AppBar _baseAppBarChangeTitle(
); );
} }
Text baseText(String text, double fontSize, Color color, {bool bold = false}) { Text baseText(String text, double fontSize, Color color,
{bool bold = false, TextAlign align}) {
return Text( return Text(
text, text,
textAlign: align ?? TextAlign.start,
textScaleFactor: 1.0, textScaleFactor: 1.0,
style: TextStyle( style: TextStyle(
decoration: TextDecoration.none, decoration: TextDecoration.none,
...@@ -474,8 +476,8 @@ Widget baseSliverAppBar(String url, ...@@ -474,8 +476,8 @@ Widget baseSliverAppBar(String url,
Widget baseSliverBack(VoidCallback tap) { Widget baseSliverBack(VoidCallback tap) {
return Positioned( return Positioned(
top: 49, top: 40,
left: 15, left: 7,
child: GestureDetector( child: GestureDetector(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
onTap: tap, onTap: tap,
...@@ -485,11 +487,9 @@ Widget baseSliverBack(VoidCallback tap) { ...@@ -485,11 +487,9 @@ Widget baseSliverBack(VoidCallback tap) {
decoration: decoration:
BoxDecoration(color: Color(0x99FFFFFF), shape: BoxShape.circle), BoxDecoration(color: Color(0x99FFFFFF), shape: BoxShape.circle),
alignment: Alignment.center, alignment: Alignment.center,
child: Hero( child: Container(
tag: "left_arrow", child: Image.asset("assets/left_arrow.png"),
child: Container( ),
child: Image.asset("assets/left_arrow.png"),
)),
)), )),
); );
} }
......
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