Commit 3ccaf436 authored by 杜欣's avatar 杜欣

样式调整

parent e046c269
...@@ -88,7 +88,7 @@ class ActivityReportState extends State<ActivityReportPage> { ...@@ -88,7 +88,7 @@ class ActivityReportState extends State<ActivityReportPage> {
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
TopCard(share: data.data.data.report?.share), TopCard(share: data.data.data.report?.share),
SizedBox(height: ScreenUtil().setHeight(41)), SizedBox(height: ScreenUtil().setHeight(8)),
PictorialCard(pictorialList: data.data.data.report?.cards, id: _model.id), PictorialCard(pictorialList: data.data.data.report?.cards, id: _model.id),
SizedBox(height: ScreenUtil().setHeight(38)) SizedBox(height: ScreenUtil().setHeight(38))
], ],
...@@ -131,7 +131,7 @@ class TopCard extends StatelessWidget { ...@@ -131,7 +131,7 @@ class TopCard extends StatelessWidget {
border: Border( border: Border(
bottom: BorderSide(color: Color(0xffeeeeee), width: 1.0))), bottom: BorderSide(color: Color(0xffeeeeee), width: 1.0))),
margin: EdgeInsets.only(left: 18, right: 18), margin: EdgeInsets.only(left: 18, right: 18),
height: 62, height: ScreenUtil().setHeight(62),
child: Row(children: <Widget>[ child: Row(children: <Widget>[
Text('¥', Text('¥',
style: TextStyle( style: TextStyle(
...@@ -142,7 +142,7 @@ class TopCard extends StatelessWidget { ...@@ -142,7 +142,7 @@ class TopCard extends StatelessWidget {
Text('$val', Text('$val',
style: TextStyle( style: TextStyle(
color: _goldenColor, color: _goldenColor,
fontSize: 45, fontSize: ScreenUtil().setSp(45),
fontWeight: FontWeight.bold)), fontWeight: FontWeight.bold)),
]), ]),
) )
...@@ -179,14 +179,6 @@ class TopCard extends StatelessWidget { ...@@ -179,14 +179,6 @@ class TopCard extends StatelessWidget {
return Container( return Container(
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Text(
'第',
style: TextStyle(
fontSize: 11,
color: _goldenColor,
fontWeight: FontWeight.bold,
height: 2),
),
SizedBox(width: 4), SizedBox(width: 4),
Text( Text(
'$val', '$val',
...@@ -246,6 +238,7 @@ class TopCard extends StatelessWidget { ...@@ -246,6 +238,7 @@ class TopCard extends StatelessWidget {
style: TextStyle( style: TextStyle(
color: ALColors.Color323232, color: ALColors.Color323232,
fontSize: ScreenUtil().setSp(12), fontSize: ScreenUtil().setSp(12),
height: 17/12,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
letterSpacing: 1.5, letterSpacing: 1.5,
), ),
...@@ -271,7 +264,7 @@ class TopCard extends StatelessWidget { ...@@ -271,7 +264,7 @@ class TopCard extends StatelessWidget {
children: <Widget>[ children: <Widget>[
Container( Container(
color: Color(0xFFF6F6F6), color: Color(0xFFF6F6F6),
width: ScreenUtil().setWidth(139), width: ScreenUtil().setWidth(140),
height: ScreenUtil().setHeight(55), height: ScreenUtil().setHeight(55),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
...@@ -307,7 +300,7 @@ class TopCard extends StatelessWidget { ...@@ -307,7 +300,7 @@ class TopCard extends StatelessWidget {
), ),
Container( Container(
color: Color(0xFFF6F6F6), color: Color(0xFFF6F6F6),
width: ScreenUtil().setWidth(139), width: ScreenUtil().setWidth(140),
height: ScreenUtil().setHeight(55), height: ScreenUtil().setHeight(55),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
...@@ -316,7 +309,7 @@ class TopCard extends StatelessWidget { ...@@ -316,7 +309,7 @@ class TopCard extends StatelessWidget {
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: ScreenUtil().setHeight(4), top: ScreenUtil().setHeight(4),
left: ScreenUtil().setWidth(14)), left: ScreenUtil().setWidth(8)),
child: Text('你的氪金排名为全国', child: Text('你的氪金排名为全国',
style: TextStyle( style: TextStyle(
fontSize: ScreenUtil().setSp(11), fontSize: ScreenUtil().setSp(11),
...@@ -329,7 +322,7 @@ class TopCard extends StatelessWidget { ...@@ -329,7 +322,7 @@ class TopCard extends StatelessWidget {
height: ScreenUtil().setHeight(32), height: ScreenUtil().setHeight(32),
), ),
Positioned( Positioned(
right: ScreenUtil().setWidth(11), right: ScreenUtil().setWidth(8),
bottom: 0, bottom: 0,
child: AnimationNumber( child: AnimationNumber(
targetNmber: share.rank.toDouble(), targetNmber: share.rank.toDouble(),
...@@ -357,7 +350,7 @@ class PictorialCard extends StatelessWidget { ...@@ -357,7 +350,7 @@ class PictorialCard extends StatelessWidget {
Widget _gridViewItemUI(BuildContext context, item) { Widget _gridViewItemUI(BuildContext context, item) {
return Container( return Container(
padding: EdgeInsets.all(3), padding: EdgeInsets.only(right: 3, bottom: 3, left: 3),
child: CachedNetworkImage( child: CachedNetworkImage(
imageUrl: '${item.image}-w', imageUrl: '${item.image}-w',
width: ScreenUtil().setWidth(110), width: ScreenUtil().setWidth(110),
...@@ -370,53 +363,55 @@ class PictorialCard extends StatelessWidget { ...@@ -370,53 +363,55 @@ class PictorialCard extends StatelessWidget {
list.add(_gridViewItemUI(context, item)); list.add(_gridViewItemUI(context, item));
}); });
return Container( return Container(
child: GestureDetector( margin: EdgeInsets.only(top: ScreenUtil().setHeight(32)),
onTap: () { child: GestureDetector(
print('${item.protocol}&survey_record_id=$id'); onTap: () {
jumpToPictorial('${item.protocol}&survey_record_id=$id'); jumpToPictorial('${item.protocol}&survey_record_id=$id');
}, },
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Padding( Padding(
padding: EdgeInsets.only(bottom: 14.0), padding: EdgeInsets.only(bottom: 11.0),
child: Wrap(children: list), child: Wrap(children: list),
), ),
Container( Container(
width: ScreenUtil().setWidth(343), width: ScreenUtil().setWidth(343),
height: ScreenUtil().setHeight(53), height: ScreenUtil().setHeight(53),
color: Colors.white, color: Colors.white,
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[ children: <Widget>[
Stack( Stack(
children: <Widget>[ children: <Widget>[
Container( Container(
padding: EdgeInsets.only(right: 12), padding: EdgeInsets.only(right: 12),
child: Text( child: Text(
'${item.guide}', '${item.guide}',
style: TextStyle( style: TextStyle(
color: Color(0xFF323232), color: Color(0xFF323232),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: ScreenUtil().setSp(14)), fontSize: ScreenUtil().setSp(14)),
),
), ),
Positioned( ),
width: ScreenUtil().setWidth(5), Positioned(
height: ScreenUtil().setHeight(10), width: ScreenUtil().setWidth(10),
top: ScreenUtil().setHeight(4), height: ScreenUtil().setHeight(20),
right: 0, top: ScreenUtil().setHeight(-2),
child: IMAGE.Image.asset('images/right_icon.png', right: 0,
width: ScreenUtil().setWidth(5), child: IMAGE.Image.asset('images/right_icon.png',
height: ScreenUtil().setHeight(10)), width: ScreenUtil().setWidth(10),
) height: ScreenUtil().setHeight(20)),
], )
) ],
], )
)) ],
], ))
))); ],
)
)
);
} }
@override @override
...@@ -517,7 +512,7 @@ class _AnimationCharacterState extends State<AnimationCharacter> ...@@ -517,7 +512,7 @@ class _AnimationCharacterState extends State<AnimationCharacter>
{'url': 'images/light_grey_person.png', 'width': 14.0, 'height': 36.0} {'url': 'images/light_grey_person.png', 'width': 14.0, 'height': 36.0}
]; ];
final target = widget.targetNmber.ceil() / 10; final target = (widget.targetNmber / 10).ceil();
_animationController.addListener(() { _animationController.addListener(() {
var value = _animationController.value; var value = _animationController.value;
double percent = value / 10; double percent = value / 10;
......
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