Commit 192029fd authored by 杜欣's avatar 杜欣

ui调整

parent 3ccaf436
......@@ -152,15 +152,16 @@ class TopCard extends StatelessWidget {
_percentageContainer(val) {
return Container(
height: ScreenUtil().setHeight(28),
child: Row(
children: <Widget>[
Text(
'$val%',
style: TextStyle(
fontSize: 24,
fontSize: ScreenUtil().setSp(20),
color: _goldenColor,
fontWeight: FontWeight.bold,
height: 34 / 24),
fontWeight: FontWeight.bold
),
),
SizedBox(width: 4),
Text(
......@@ -177,16 +178,17 @@ class TopCard extends StatelessWidget {
_rankingContainer(val) {
return Container(
height: ScreenUtil().setHeight(28),
child: Row(
children: <Widget>[
SizedBox(width: 4),
Text(
'$val',
style: TextStyle(
fontSize: 24,
fontSize: ScreenUtil().setSp(20),
color: _goldenColor,
fontWeight: FontWeight.bold,
height: 34 / 24),
fontWeight: FontWeight.bold
),
),
SizedBox(width: 4),
Text(
......@@ -271,7 +273,8 @@ class TopCard extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
margin: EdgeInsets.only(
height: ScreenUtil().setHeight(15),
padding: EdgeInsets.only(
left: ScreenUtil().setWidth(8),
top: ScreenUtil().setHeight(4)),
child: Text('你的氪金量超过了',
......@@ -287,8 +290,8 @@ class TopCard extends StatelessWidget {
height: ScreenUtil().setHeight(32),
),
Positioned(
right: ScreenUtil().setWidth(8),
bottom: 0,
right: ScreenUtil().setWidth(4),
bottom: ScreenUtil().setHeight(2),
child: AnimationNumber(
targetNmber: share.beat.toDouble(),
delay: 1000,
......@@ -307,7 +310,8 @@ class TopCard extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
margin: EdgeInsets.only(
height: ScreenUtil().setHeight(15),
padding: EdgeInsets.only(
top: ScreenUtil().setHeight(4),
left: ScreenUtil().setWidth(8)),
child: Text('你的氪金排名为全国',
......@@ -322,8 +326,8 @@ class TopCard extends StatelessWidget {
height: ScreenUtil().setHeight(32),
),
Positioned(
right: ScreenUtil().setWidth(8),
bottom: 0,
right: ScreenUtil().setWidth(6),
bottom: ScreenUtil().setHeight(2),
child: AnimationNumber(
targetNmber: share.rank.toDouble(),
delay: 1000,
......
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