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

ui调整

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