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

Merge branch 'zcc/flutter' into 'test'

UI走查

See merge request !32
parents ce97a652 15986f8f
...@@ -34,7 +34,7 @@ class _PlansCompareFeedItemViewState ...@@ -34,7 +34,7 @@ class _PlansCompareFeedItemViewState
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
getItem(), getItem(),
Divider(height: 0.5, color: Color(0x99979797)) Divider(height: 0.5, color: Color(0xFFE5E5E5))
], ],
)); ));
} }
...@@ -50,7 +50,7 @@ class _PlansCompareFeedItemViewState ...@@ -50,7 +50,7 @@ class _PlansCompareFeedItemViewState
getFirstLevelItem() { getFirstLevelItem() {
return Container( return Container(
width: double.maxFinite, width: double.maxFinite,
height: 90, height: 80,
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
padding: EdgeInsets.only(top: 15, bottom: 15), padding: EdgeInsets.only(top: 15, bottom: 15),
child: Row( child: Row(
...@@ -64,7 +64,7 @@ class _PlansCompareFeedItemViewState ...@@ -64,7 +64,7 @@ class _PlansCompareFeedItemViewState
), ),
), ),
Container( Container(
margin: EdgeInsets.only(left: 15, right: 15), margin: EdgeInsets.only(left: 15, right: 12),
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.circular(4.0), borderRadius: BorderRadius.circular(4.0),
child: CachedNetworkImage( child: CachedNetworkImage(
...@@ -101,7 +101,7 @@ class _PlansCompareFeedItemViewState ...@@ -101,7 +101,7 @@ class _PlansCompareFeedItemViewState
TextSpan( TextSpan(
text: "%", text: "%",
style: TextStyle( style: TextStyle(
fontSize: 11, fontSize: 10,
color: Color(0xFFFF5963), color: Color(0xFFFF5963),
fontWeight: FontWeight.w500)) fontWeight: FontWeight.w500))
])), ])),
...@@ -113,8 +113,8 @@ class _PlansCompareFeedItemViewState ...@@ -113,8 +113,8 @@ class _PlansCompareFeedItemViewState
children: <Widget>[ children: <Widget>[
baseText('¥${widget.plan.minPrice}-${widget.plan.maxPrice}', baseText('¥${widget.plan.minPrice}-${widget.plan.maxPrice}',
13, Color(0xFFFF5963)), 13, Color(0xFFFF5963)),
baseText( baseText("销量${NumPlanUtil.getSale(widget.plan.salesCount)}",
"销量${NumPlanUtil.getSale(widget.plan.salesCount)}", 11, Color(0xFF282828)) 11, Color(0xFF666666))
], ],
) )
], ],
...@@ -162,7 +162,7 @@ class _PlansCompareFeedItemViewState ...@@ -162,7 +162,7 @@ class _PlansCompareFeedItemViewState
baseText('¥${widget.plan.minPrice}-${widget.plan.maxPrice}', baseText('¥${widget.plan.minPrice}-${widget.plan.maxPrice}',
13, Color(0xFFFF5963)), 13, Color(0xFFFF5963)),
baseText("指导价:¥${widget.plan.guidePrice}", 11, baseText("指导价:¥${widget.plan.guidePrice}", 11,
Color(0xFF282828)), Color(0xFF666666)),
], ],
), ),
], ],
...@@ -178,7 +178,7 @@ class _PlansCompareFeedItemViewState ...@@ -178,7 +178,7 @@ class _PlansCompareFeedItemViewState
_icon = _unchecked; _icon = _unchecked;
} else { } else {
if (widget._setCompare.length == 2) { if (widget._setCompare.length == 2) {
NativeToast.showNativeToast("不许再选了两个够了!"); NativeToast.showNativeToast("请选择最多2个项目进行对比");
return; return;
} }
_icon = _checked; _icon = _checked;
......
...@@ -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(0x99979797)), Divider(height: 0.5, color: Color(0xFFE5E5E5)),
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),
......
...@@ -30,7 +30,7 @@ class ProjectDetailsItemView extends StatelessWidget { ...@@ -30,7 +30,7 @@ class ProjectDetailsItemView extends StatelessWidget {
padding: EdgeInsets.only(left: 15.0), padding: EdgeInsets.only(left: 15.0),
margin: EdgeInsets.only(bottom: 16.0), margin: EdgeInsets.only(bottom: 16.0),
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
height: 55, height: 40,
decoration: BoxDecoration( decoration: BoxDecoration(
image: DecorationImage( image: DecorationImage(
image: AssetImage("assets/bg_project_detail_item.png"), image: AssetImage("assets/bg_project_detail_item.png"),
...@@ -47,29 +47,25 @@ class ProjectDetailsItemView extends StatelessWidget { ...@@ -47,29 +47,25 @@ class ProjectDetailsItemView extends StatelessWidget {
} }
getAttrItem(Attrs attrs) { getAttrItem(Attrs attrs) {
return Container( return Row(
width: double.maxFinite, crossAxisAlignment: CrossAxisAlignment.start,
margin: EdgeInsets.only(bottom: 25, left: 15, right: 15), children: <Widget>[
child: Row( Container(
children: <Widget>[ margin: EdgeInsets.only(right: 25.0, left: 15, bottom: 25),
Container( width: 78,
margin: EdgeInsets.only(right: 25.0), child: baseText(attrs.attrName, 13, Color(0xFF999999),
alignment: Alignment.centerLeft, textAlign: TextAlign.start,
width: 78, maxLines: 2,
child: baseText(attrs.attrName, 13, Color(0xFF999999), overflow: TextOverflow.ellipsis)),
textAlign: TextAlign.left, Expanded(
child: Container(
margin: EdgeInsets.only(right: 15, bottom: 25),
child: baseText(attrs.attrValue, 14, Color(0xFF282828),
textAlign: TextAlign.start,
maxLines: 2, maxLines: 2,
overflow: TextOverflow.ellipsis)), overflow: TextOverflow.ellipsis)),
Expanded( ),
child: Container( ],
alignment: Alignment.centerLeft,
child: baseText(attrs.attrValue, 14, Color(0xFF282828),
textAlign: TextAlign.left,
maxLines: 2,
overflow: TextOverflow.ellipsis)),
),
],
),
); );
} }
} }
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