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

优化

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