Commit 1052acf1 authored by 林生雨's avatar 林生雨

w

parent 197b47af
...@@ -96,7 +96,7 @@ class LevelOneItem extends StatelessWidget { ...@@ -96,7 +96,7 @@ class LevelOneItem extends StatelessWidget {
top: 18, top: 18,
child: Row( child: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[ children: <Widget>[
baseText(cards.doctor.name, 15, Color(0xff333333), baseText(cards.doctor.name, 15, Color(0xff333333),
bold: true), bold: true),
......
...@@ -59,5 +59,7 @@ class LevelOneModel extends BaseModel { ...@@ -59,5 +59,7 @@ class LevelOneModel extends BaseModel {
textLive.dispost(); textLive.dispost();
} }
void selectTab(int index) {} void selectTab(int index) {
}
} }
...@@ -78,18 +78,28 @@ class PlanItem extends StatelessWidget { ...@@ -78,18 +78,28 @@ class PlanItem extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: <Widget>[ children: <Widget>[
baseText(plans.name, 14, Color(0xff282828), bold: true),
Container( Container(
constraints: BoxConstraints(maxWidth: 110),
child: baseText(plans.name, 14, Color(0xff282828),
bold: true),
),
plans.operation_type.empty()
? Container(
width: 0,
height: 0,
)
: Container(
constraints: BoxConstraints(maxWidth: 60),
margin: EdgeInsets.only(left: 4), margin: EdgeInsets.only(left: 4),
child: Container( child: Container(
width: 28, padding: EdgeInsets.only(
height: 15, top: 2, bottom: 2, left: 3, right: 3),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(2), borderRadius: BorderRadius.circular(2),
color: Color(0xffF0F9F7)), color: Color(0xffF0F9F7)),
alignment: Alignment.center, alignment: Alignment.center,
child: baseText( child: baseText("${plans.operation_type}", 11,
"${plans.operation_type}", 11, Color(0xff3FB5AF), Color(0xff3FB5AF),
bold: true), bold: true),
), ),
) )
...@@ -97,19 +107,18 @@ class PlanItem extends StatelessWidget { ...@@ -97,19 +107,18 @@ class PlanItem extends StatelessWidget {
), ),
), ),
Positioned( Positioned(
top: 14, top: 15,
right: 10, right: 10,
child: Row( child: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
// crossAxisAlignment: CrossAxisAlignment.end, // crossAxisAlignment: CrossAxisAlignment.end,
verticalDirection: VerticalDirection.down, verticalDirection: VerticalDirection.down,
children: <Widget>[ children: <Widget>[
baseText("好评率", 11, Color(0xff282828)), baseText("好评率", 11, Color(0xff282828)),
Container( Container(
width: 4, width: 4,
), ),
baseText("${rate}", 14, Color(0xffFF5963)), baseText("${rate}", 14, Color(0xffFF5963), bold: true),
baseText("%", 10, Color(0xffFF5963)), baseText("%", 10, Color(0xffFF5963)),
], ],
), ),
...@@ -117,8 +126,8 @@ class PlanItem extends StatelessWidget { ...@@ -117,8 +126,8 @@ class PlanItem extends StatelessWidget {
Positioned( Positioned(
bottom: 14, bottom: 14,
right: 10, right: 10,
child: baseText("销量${plans.salesCount}", child:
11, Color(0xff282828)), baseText("销量${plans.salesCount}", 11, Color(0xff282828)),
), ),
Positioned( Positioned(
left: 91, left: 91,
......
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