Commit 173ec442 authored by 朱翠翠's avatar 朱翠翠

优化

parent b4a3aedf
...@@ -27,7 +27,13 @@ class _PlansCompareFeedItemViewState ...@@ -27,7 +27,13 @@ class _PlansCompareFeedItemViewState
@override @override
Widget buildItem(BuildContext context) { Widget buildItem(BuildContext context) {
return Container( return Container(
margin: EdgeInsets.only(left: 15, right: 15), child: getItem()); margin: EdgeInsets.only(left: 15, right: 15),
child: Column(
children: <Widget>[
getItem(),
Divider(height: 0.5, color: Color(0xFF979797))
],
));
} }
getItem() { getItem() {
......
...@@ -98,13 +98,24 @@ class _PlansCompareFeedState extends BaseState<PlansCompareFeedPage> ...@@ -98,13 +98,24 @@ class _PlansCompareFeedState extends BaseState<PlansCompareFeedPage>
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
onTap: () => onClickCompare(), onTap: () => onClickCompare(),
child: Container( child: Container(
margin: EdgeInsets.only(left: 15, right: 15, top: 7.5, bottom: 7.5), color: Colors.white,
width: double.maxFinite, child: Column(
height: 40, mainAxisSize: MainAxisSize.min,
decoration: BoxDecoration( children: <Widget>[
color: _compareColor, borderRadius: BorderRadius.circular(20)), Divider(height: 0.5, color: Color(0xFF979797)),
alignment: Alignment.center, Container(
child: baseText("对比", 14, Colors.white, bold: true), margin: EdgeInsets.only(
left: 15, right: 15, top: 7.5, bottom: 7.5),
width: double.maxFinite,
height: 40,
decoration: BoxDecoration(
color: _compareColor,
borderRadius: BorderRadius.circular(20)),
alignment: Alignment.center,
child: baseText("对比", 14, Colors.white, bold: true),
)
],
),
)) ))
]); ]);
} }
......
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