Commit 8fb09354 authored by 朱翠翠's avatar 朱翠翠

优化

parent de2b030a
...@@ -31,7 +31,7 @@ class _PlansCompareFeedItemViewState ...@@ -31,7 +31,7 @@ class _PlansCompareFeedItemViewState
} }
getItem() { getItem() {
if (widget.plan.planType == 2) { if (widget.plan.planType == 1) {
return getFirstLevelItem(); return getFirstLevelItem();
} else { } else {
return getSecondLevelItem(); return getSecondLevelItem();
...@@ -82,12 +82,18 @@ class _PlansCompareFeedItemViewState ...@@ -82,12 +82,18 @@ class _PlansCompareFeedItemViewState
children: <Widget>[ children: <Widget>[
baseText(widget.plan.name, 14, Color(0xFF282828), baseText(widget.plan.name, 14, Color(0xFF282828),
bold: true), bold: true),
Row(children: <Widget>[ Text.rich(TextSpan(children: [
baseText("好评率 ", 11, Color(0xFF282828)), TextSpan(
baseText( text: "好评率 ",
widget.plan.positiveRate, 14, Color(0xFFFF5963), style: TextStyle(
bold: true) fontSize: 11, color: Color(0xFF282828))),
]), TextSpan(
text: widget.plan.positiveRate,
style: TextStyle(
fontSize: 14,
color: Color(0xFFFF5963),
fontWeight: FontWeight.w500))
])),
], ],
), ),
), ),
......
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