|
|
@@ -4,39 +4,540 @@ import 'dart:ui';
|
|
|
import '../styles/totast.dart';
|
|
|
|
|
|
class RankList extends StatefulWidget {
|
|
|
+ RankList({Key key, this.raceId}) : super(key: key);
|
|
|
+ final String raceId; // 用来储存传递过来的值
|
|
|
@override
|
|
|
RankListState createState() => RankListState();
|
|
|
}
|
|
|
|
|
|
class RankListState extends State<RankList> {
|
|
|
+ String raceName = '2019';
|
|
|
+ List raceNameList = ['2019', '2018', '2017'];
|
|
|
+ List rankList = [
|
|
|
+ {
|
|
|
+ "icon":
|
|
|
+ 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg',
|
|
|
+ "money": '568449',
|
|
|
+ "name": '汪大宝'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "icon":
|
|
|
+ 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg',
|
|
|
+ "money": '56849',
|
|
|
+ "name": 'Crona'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "icon":
|
|
|
+ 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg',
|
|
|
+ "money": '38449',
|
|
|
+ "name": 'Ewell'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "icon":
|
|
|
+ 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg',
|
|
|
+ "money": '568449',
|
|
|
+ "name": '汪大宝'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "icon":
|
|
|
+ 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg',
|
|
|
+ "money": '56849',
|
|
|
+ "name": 'Crona'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "icon":
|
|
|
+ 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg',
|
|
|
+ "money": '38449',
|
|
|
+ "name": 'Ewell'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "icon":
|
|
|
+ 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg',
|
|
|
+ "money": '568449',
|
|
|
+ "name": '汪大宝'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "icon":
|
|
|
+ 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg',
|
|
|
+ "money": '56849',
|
|
|
+ "name": 'Crona'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "icon":
|
|
|
+ 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg',
|
|
|
+ "money": '38449',
|
|
|
+ "name": 'Ewell'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "icon":
|
|
|
+ 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg',
|
|
|
+ "money": '568449',
|
|
|
+ "name": '汪大宝'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "icon":
|
|
|
+ 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg',
|
|
|
+ "money": '56849',
|
|
|
+ "name": 'Crona汪大宝汪大宝汪大宝汪大宝汪大宝汪大宝汪大宝汪大宝汪大宝汪大宝汪大宝汪大宝汪大宝汪大宝汪大宝'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "icon":
|
|
|
+ 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg',
|
|
|
+ "money": '38449',
|
|
|
+ "name": 'Ewell'
|
|
|
+ }
|
|
|
+ ];
|
|
|
+
|
|
|
+ ScrollController _mcontroller;
|
|
|
+ bool scrollFlag = true;
|
|
|
+ int currentPage = 1;
|
|
|
@override
|
|
|
- Widget build(BuildContext context) {
|
|
|
+ void initState() {
|
|
|
+ super.initState();
|
|
|
+ _mcontroller = ScrollController();
|
|
|
+ _mcontroller.addListener(() {
|
|
|
+ if (_mcontroller.position.pixels ==
|
|
|
+ _mcontroller.position.maxScrollExtent) {
|
|
|
+ if (scrollFlag) {
|
|
|
+ print(currentPage);
|
|
|
+ // setState(() {
|
|
|
+ // rankList.addAll([
|
|
|
+ // {
|
|
|
+ // "icon":
|
|
|
+ // 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg',
|
|
|
+ // "money": '568449',
|
|
|
+ // "name": '汪大宝'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // "icon":
|
|
|
+ // 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg',
|
|
|
+ // "money": '56849',
|
|
|
+ // "name": 'Crona'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // "icon":
|
|
|
+ // 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg',
|
|
|
+ // "money": '38449',
|
|
|
+ // "name": 'Ewell'
|
|
|
+ // }
|
|
|
+ // ]);
|
|
|
+ // });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
+ @override
|
|
|
+ void dispose() {
|
|
|
+ super.dispose();
|
|
|
+ _mcontroller.dispose();
|
|
|
+ }
|
|
|
|
|
|
+ @override
|
|
|
+ Widget build(BuildContext context) {
|
|
|
return new WillPopScope(
|
|
|
child: Scaffold(
|
|
|
- appBar: AppBar(
|
|
|
- backgroundColor: PRIMARY_COLOR,
|
|
|
- title: Text('排行榜'),
|
|
|
- centerTitle: true,
|
|
|
- elevation:0,
|
|
|
- ),
|
|
|
- body: RefreshIndicator(
|
|
|
- color: PRIMARY_COLOR,
|
|
|
- backgroundColor: BG_COLOR,
|
|
|
- onRefresh: () async {
|
|
|
- await new Future.delayed(const Duration(seconds: 1));
|
|
|
-
|
|
|
- },
|
|
|
- child: Container(
|
|
|
- color: BG_COLOR,
|
|
|
+ body: Container(
|
|
|
+ color: BG_SUB_COLOR,
|
|
|
+ child: RefreshIndicator(
|
|
|
+ color: PRIMARY_COLOR,
|
|
|
+ backgroundColor: BG_COLOR,
|
|
|
+ onRefresh: () async {
|
|
|
+ await new Future.delayed(const Duration(seconds: 1));
|
|
|
+ },
|
|
|
+ child: CustomScrollView(
|
|
|
+ controller: _mcontroller,
|
|
|
+ physics: AlwaysScrollableScrollPhysics(),
|
|
|
+ slivers: <Widget>[
|
|
|
+ _sliverAppBar(),
|
|
|
+ _slievrToBoxAdapter(),
|
|
|
+ _sliverList()
|
|
|
+ ],
|
|
|
+ )),
|
|
|
+ ),
|
|
|
+ floatingActionButton: Container(
|
|
|
+ padding: EdgeInsets.only(left: 20,right: 15),
|
|
|
+ height: 48,
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ gradient: LinearGradient(
|
|
|
+ begin: Alignment.topRight,
|
|
|
+ colors: [Color(0xFF59607A), Color(0xFF3C3C67)],
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ child: Row(
|
|
|
+ children: <Widget>[
|
|
|
+ Container(
|
|
|
+ width:30,
|
|
|
+ height: 30,
|
|
|
+ child: CircleAvatar(
|
|
|
+ backgroundImage: NetworkImage('http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Padding(
|
|
|
+ padding: EdgeInsets.symmetric(horizontal: 10),
|
|
|
+ child: Text('粉条',style: TextStyle(color: Colors.white,fontSize: 14)),
|
|
|
+ ),
|
|
|
+ Image.asset('images/icon_jinbi_da_bai.png',width: 20),
|
|
|
+ Padding(
|
|
|
+ padding: EdgeInsets.only(left: 2),
|
|
|
+ child: Text('568449',style: TextStyle(color: Colors.white,fontSize: 14,fontWeight: FontWeight.w500)),
|
|
|
+ ),
|
|
|
+ Expanded(
|
|
|
+ flex: 1,
|
|
|
+ child: Text('第 28 名',style: TextStyle(color: Colors.white,fontSize: 14,fontWeight: FontWeight.w500),textAlign: TextAlign.right),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
),
|
|
|
- )),
|
|
|
+ floatingActionButtonLocation:
|
|
|
+ FloatingActionButtonLocation.centerDocked,
|
|
|
+ ),
|
|
|
onWillPop: () {
|
|
|
Toast.hide();
|
|
|
print("返回键点击了");
|
|
|
Navigator.pop(context);
|
|
|
});
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
+ Widget _sliverAppBar() {
|
|
|
+ return SliverAppBar(
|
|
|
+ title: Text('排行榜'),
|
|
|
+ centerTitle: true,
|
|
|
+ actions: <Widget>[
|
|
|
+ PopupMenuButton(
|
|
|
+ initialValue: raceName,
|
|
|
+ child: Row(
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
+ children: <Widget>[
|
|
|
+ Text(
|
|
|
+ raceName + '赛季',
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.white,
|
|
|
+ fontSize: 13,
|
|
|
+ fontWeight: FontWeight.w400),
|
|
|
+ ),
|
|
|
+ Image.asset(
|
|
|
+ 'images/icon_zhankai_baise.png',
|
|
|
+ width: 20,
|
|
|
+ ),
|
|
|
+ Container(
|
|
|
+ width: 15,
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ onSelected: (value) {
|
|
|
+ setState(() {
|
|
|
+ raceName = value;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ itemBuilder: (BuildContext context) {
|
|
|
+ return raceNameList.map((choice) {
|
|
|
+ return new PopupMenuItem(
|
|
|
+ child: new Text(choice + '赛季'), value: choice);
|
|
|
+ }).toList();
|
|
|
+ }),
|
|
|
+ ],
|
|
|
+ pinned: true);
|
|
|
+ }
|
|
|
+
|
|
|
+ Widget _slievrToBoxAdapter() {
|
|
|
+ return SliverToBoxAdapter(
|
|
|
+ child: Container(
|
|
|
+ margin: EdgeInsets.only(bottom: 10),
|
|
|
+ height: 196,
|
|
|
+ color: PRIMARY_COLOR,
|
|
|
+ child: Row(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
+ children: widgetList(),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Widget _sliverList() {
|
|
|
+ return SliverList(
|
|
|
+ delegate: SliverChildBuilderDelegate(
|
|
|
+ (BuildContext context, int index) {
|
|
|
+ if (index > 2 && index < rankList.length) {
|
|
|
+ return Container(
|
|
|
+ padding: EdgeInsets.symmetric(horizontal: 15),
|
|
|
+ child: Container(
|
|
|
+ height: 36,
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ border: Border(
|
|
|
+ bottom: BorderSide(
|
|
|
+ width: 1,
|
|
|
+ color: Colors.black26,
|
|
|
+ style: BorderStyle.solid))),
|
|
|
+ child: Row(
|
|
|
+ children: <Widget>[
|
|
|
+ Container(
|
|
|
+ width: 36,
|
|
|
+ height: 36,
|
|
|
+ margin: EdgeInsets.only(right: 15),
|
|
|
+ child: CircleAvatar(
|
|
|
+ backgroundImage: NetworkImage(rankList[index]['icon']),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Expanded(
|
|
|
+ flex: 1,
|
|
|
+ child: Column(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
+ children: <Widget>[
|
|
|
+ Text(rankList[index]['name'],
|
|
|
+ style: TextStyle(
|
|
|
+ color: PRIMARY_COLOR,
|
|
|
+ fontSize: 14,
|
|
|
+ height: 1.2),
|
|
|
+ overflow: TextOverflow.ellipsis),
|
|
|
+ Row(
|
|
|
+ children: <Widget>[
|
|
|
+ Image.asset('images/icon_jinbi_da_bai.png',
|
|
|
+ width: 20),
|
|
|
+ Padding(
|
|
|
+ padding: EdgeInsets.only(left: 2),
|
|
|
+ child: Text(rankList[index]['money'],
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.white,
|
|
|
+ fontSize: 14,
|
|
|
+ fontWeight: FontWeight.w500,
|
|
|
+ )),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ index < 100
|
|
|
+ ? Container(
|
|
|
+ width: 30,
|
|
|
+ height: 30,
|
|
|
+ margin: EdgeInsets.only(right: 33),
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ image: DecorationImage(
|
|
|
+ image: AssetImage(
|
|
|
+ 'images/icon_paihangbang_04.png'),
|
|
|
+ fit: BoxFit.cover)),
|
|
|
+ child: Text(
|
|
|
+ (index + 1).toString(),
|
|
|
+ style: TextStyle(
|
|
|
+ color: Color(0xFF15151D),
|
|
|
+ fontSize: 12,
|
|
|
+ fontWeight: FontWeight.w500,
|
|
|
+ height: 2),
|
|
|
+ textAlign: TextAlign.center,
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ : Container()
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ height: 66,
|
|
|
+ );
|
|
|
+ } else if (index == rankList.length) {
|
|
|
+ return Padding(
|
|
|
+ padding: EdgeInsets.only(top: 10, bottom: 68),
|
|
|
+ child: Text(
|
|
|
+ '没有更多了',
|
|
|
+ textAlign: TextAlign.center,
|
|
|
+ style: TextStyle(color: Colors.white30),
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ return Container();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ childCount: rankList.length + 1,
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ List<Widget> widgetList() {
|
|
|
+ List<Widget> list = [];
|
|
|
+ if (rankList.length > 0) {
|
|
|
+ list.add(Container(
|
|
|
+ margin: EdgeInsets.only(top: 20, left: 30, right: 30),
|
|
|
+ child: Column(
|
|
|
+ children: <Widget>[
|
|
|
+ Container(
|
|
|
+ width: 80,
|
|
|
+ height: 80,
|
|
|
+ child: Stack(
|
|
|
+ children: <Widget>[
|
|
|
+ Container(
|
|
|
+ padding: EdgeInsets.all(5),
|
|
|
+ width: 80,
|
|
|
+ height: 80,
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ borderRadius: BorderRadius.all(Radius.circular(80)),
|
|
|
+ gradient: LinearGradient(
|
|
|
+ begin: Alignment.topLeft,
|
|
|
+ colors: [Color(0xFFFECF01), Color(0xFFD48E00)],
|
|
|
+ ),
|
|
|
+ boxShadow: [
|
|
|
+ BoxShadow(
|
|
|
+ color: Colors.black12,
|
|
|
+ offset: Offset(2.0, 4.0),
|
|
|
+ blurRadius: 4.0)
|
|
|
+ ]),
|
|
|
+ child: CircleAvatar(
|
|
|
+ backgroundImage: NetworkImage(rankList[0]['icon']))),
|
|
|
+ Positioned(
|
|
|
+ bottom: 0,
|
|
|
+ left: 24,
|
|
|
+ child: Image.asset('images/icon_paihangbang_01.png',
|
|
|
+ width: 32))
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Padding(
|
|
|
+ padding: EdgeInsets.only(top: 7, bottom: 3),
|
|
|
+ child: Text(rankList[0]["name"],
|
|
|
+ style: TextStyle(color: Color(0xFF2E3049), fontSize: 14)),
|
|
|
+ ),
|
|
|
+ Row(
|
|
|
+ children: <Widget>[
|
|
|
+ Padding(
|
|
|
+ padding: EdgeInsets.only(right: 2),
|
|
|
+ child: Image.asset('images/icon_jinbi_da_bai.png', width: 20),
|
|
|
+ ),
|
|
|
+ Text(rankList[0]["money"],
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.white,
|
|
|
+ fontSize: 14,
|
|
|
+ fontWeight: FontWeight.w500))
|
|
|
+ ],
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ));
|
|
|
+ }
|
|
|
+
|
|
|
+ if (rankList.length > 1) {
|
|
|
+ list.insert(
|
|
|
+ 0,
|
|
|
+ Container(
|
|
|
+ margin: EdgeInsets.only(top: 50),
|
|
|
+ child: Column(
|
|
|
+ children: <Widget>[
|
|
|
+ Container(
|
|
|
+ width: 70,
|
|
|
+ height: 70,
|
|
|
+ child: Stack(
|
|
|
+ children: <Widget>[
|
|
|
+ Container(
|
|
|
+ padding: EdgeInsets.all(5),
|
|
|
+ width: 70,
|
|
|
+ height: 70,
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ borderRadius:
|
|
|
+ BorderRadius.all(Radius.circular(70)),
|
|
|
+ gradient: LinearGradient(
|
|
|
+ begin: Alignment.topLeft,
|
|
|
+ colors: [Color(0xFFE3E3E3), Color(0xFFC5C5C5)],
|
|
|
+ ),
|
|
|
+ boxShadow: [
|
|
|
+ BoxShadow(
|
|
|
+ color: Colors.black12,
|
|
|
+ offset: Offset(2.0, 4.0),
|
|
|
+ blurRadius: 4.0)
|
|
|
+ ]),
|
|
|
+ child: CircleAvatar(
|
|
|
+ backgroundImage:
|
|
|
+ NetworkImage(rankList[1]['icon']))),
|
|
|
+ Positioned(
|
|
|
+ bottom: 0,
|
|
|
+ left: 19,
|
|
|
+ child: Image.asset('images/icon_paihangbang_02.png',
|
|
|
+ width: 32))
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Padding(
|
|
|
+ padding: EdgeInsets.only(top: 7, bottom: 3),
|
|
|
+ child: Text(rankList[1]["name"],
|
|
|
+ style: TextStyle(color: Color(0xFF2E3049), fontSize: 14)),
|
|
|
+ ),
|
|
|
+ Row(
|
|
|
+ children: <Widget>[
|
|
|
+ Padding(
|
|
|
+ padding: EdgeInsets.only(right: 2),
|
|
|
+ child: Image.asset('images/icon_jinbi_da_bai.png',
|
|
|
+ width: 20),
|
|
|
+ ),
|
|
|
+ Text(rankList[1]["money"],
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.white,
|
|
|
+ fontSize: 14,
|
|
|
+ fontWeight: FontWeight.w500))
|
|
|
+ ],
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ));
|
|
|
+ }
|
|
|
+
|
|
|
+ if (rankList.length > 2) {
|
|
|
+ list.add(Container(
|
|
|
+ margin: EdgeInsets.only(top: 50),
|
|
|
+ child: Column(
|
|
|
+ children: <Widget>[
|
|
|
+ Container(
|
|
|
+ width: 70,
|
|
|
+ height: 70,
|
|
|
+ child: Stack(
|
|
|
+ children: <Widget>[
|
|
|
+ Container(
|
|
|
+ padding: EdgeInsets.all(5),
|
|
|
+ width: 70,
|
|
|
+ height: 70,
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ borderRadius: BorderRadius.all(Radius.circular(70)),
|
|
|
+ gradient: LinearGradient(
|
|
|
+ begin: Alignment.topLeft,
|
|
|
+ colors: [Color(0xFFF89E58), Color(0xFFE77023)],
|
|
|
+ ),
|
|
|
+ boxShadow: [
|
|
|
+ BoxShadow(
|
|
|
+ color: Colors.black12,
|
|
|
+ offset: Offset(2.0, 4.0),
|
|
|
+ blurRadius: 4.0)
|
|
|
+ ]),
|
|
|
+ child: CircleAvatar(
|
|
|
+ backgroundImage: NetworkImage(rankList[2]['icon']))),
|
|
|
+ Positioned(
|
|
|
+ bottom: 0,
|
|
|
+ left: 19,
|
|
|
+ child: Image.asset('images/icon_paihangbang_03.png',
|
|
|
+ width: 32))
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Padding(
|
|
|
+ padding: EdgeInsets.only(top: 7, bottom: 3),
|
|
|
+ child: Text(rankList[2]["name"],
|
|
|
+ style: TextStyle(color: Color(0xFF2E3049), fontSize: 14)),
|
|
|
+ ),
|
|
|
+ Row(
|
|
|
+ children: <Widget>[
|
|
|
+ Padding(
|
|
|
+ padding: EdgeInsets.only(right: 2),
|
|
|
+ child: Image.asset('images/icon_jinbi_da_bai.png', width: 20),
|
|
|
+ ),
|
|
|
+ Text(rankList[2]["money"],
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.white,
|
|
|
+ fontSize: 14,
|
|
|
+ fontWeight: FontWeight.w500))
|
|
|
+ ],
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ));
|
|
|
+ }
|
|
|
+
|
|
|
+ return list;
|
|
|
}
|
|
|
}
|