Commit a90cb17a authored by 朱翠翠's avatar 朱翠翠

code review

parent ae142f80
...@@ -31,7 +31,7 @@ class _PlansCompareFeedItemViewState ...@@ -31,7 +31,7 @@ class _PlansCompareFeedItemViewState
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
getItem(), getItem(),
Divider(height: 0.5, color: Color(0xFF979797)) Divider(height: 0.5, color: Color(0x99979797))
], ],
)); ));
} }
...@@ -56,26 +56,23 @@ class _PlansCompareFeedItemViewState ...@@ -56,26 +56,23 @@ class _PlansCompareFeedItemViewState
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
onTap: () => onClickCheckBox(_icon), onTap: () => onClickCheckBox(_icon),
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
child: ClipRRect( child: Image.asset(
child: Image.asset( _icon,
_icon, width: 17,
width: 17, height: 17,
height: 17, fit: BoxFit.fill,
fit: BoxFit.fill, ))),
)),
)),
Container( Container(
margin: EdgeInsets.only(left: 15, right: 15), margin: EdgeInsets.only(left: 15, right: 15),
child: ClipRRect( width: 50,
borderRadius: BorderRadius.circular(4.0), height: 50,
child: Image.network( decoration: BoxDecoration(
widget.plan.projectImage, borderRadius: BorderRadius.circular(4.0),
width: 50, image: DecorationImage(
height: 50, fit: BoxFit.fill,
fit: BoxFit.fill, image: NetworkImage(widget.plan.projectImage),
), )),
),
), ),
Expanded( Expanded(
child: Column( child: Column(
...@@ -132,15 +129,13 @@ class _PlansCompareFeedItemViewState ...@@ -132,15 +129,13 @@ class _PlansCompareFeedItemViewState
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
onTap: () => onClickCheckBox(_icon), onTap: () => onClickCheckBox(_icon),
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
child: ClipRRect( child: Image.asset(
child: Image.asset( _icon,
_icon, width: 17,
width: 17, height: 17,
height: 17, fit: BoxFit.fill,
fit: BoxFit.fill, ))),
)),
)),
), ),
Expanded( Expanded(
child: Column( child: Column(
......
...@@ -56,9 +56,9 @@ class _PlansCompareFeedState extends BaseState<PlansCompareFeedPage> ...@@ -56,9 +56,9 @@ class _PlansCompareFeedState extends BaseState<PlansCompareFeedPage>
title: "方案对比", title: "方案对比",
centerTitle: true, centerTitle: true,
backClick: () { backClick: () {
if(RouterCenterImpl().findMainRouter().isWithNative()){ if (RouterCenterImpl().findMainRouter().isWithNative()) {
FlutterBoost.singleton.closeCurrent(); FlutterBoost.singleton.closeCurrent();
}else{ } else {
Navigator.of(context).pop(); Navigator.of(context).pop();
} }
}), }),
...@@ -107,7 +107,7 @@ class _PlansCompareFeedState extends BaseState<PlansCompareFeedPage> ...@@ -107,7 +107,7 @@ class _PlansCompareFeedState extends BaseState<PlansCompareFeedPage>
child: Column( child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: <Widget>[ children: <Widget>[
Divider(height: 0.5, color: Color(0xFF979797)), Divider(height: 0.5, color: Color(0x99979797)),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
left: 15, right: 15, top: 7.5, bottom: 7.5), left: 15, right: 15, top: 7.5, bottom: 7.5),
......
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