|
|
@@ -17,90 +17,87 @@ class HomeDrawer extends StatelessWidget {
|
|
|
begin: Alignment.bottomRight,
|
|
|
colors: [Color(0xFF3D3E6C), Color(0xFF626C85)],
|
|
|
)),
|
|
|
- child: SafeArea(
|
|
|
- child: Column(
|
|
|
- children: <Widget>[
|
|
|
- Container(
|
|
|
- decoration: BoxDecoration(color: Color(0x4D000000)),
|
|
|
- child: SizedBox(
|
|
|
- width: double.infinity,
|
|
|
- height: 210,
|
|
|
- child: Row(
|
|
|
- mainAxisAlignment: MainAxisAlignment.center,
|
|
|
- children: <Widget>[
|
|
|
- ClipOval(
|
|
|
- child: SizedBox(
|
|
|
- width: 86,
|
|
|
- height: 86,
|
|
|
- child: FittedBox(
|
|
|
- fit: BoxFit.cover,
|
|
|
- child: Image.network(userInfo.icon))),
|
|
|
+ child: Column(
|
|
|
+ children: <Widget>[
|
|
|
+ Container(
|
|
|
+ height: 210,
|
|
|
+ decoration: BoxDecoration(color: Color(0x4D000000)),
|
|
|
+ child: SafeArea(
|
|
|
+ child: Row(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
+ children: <Widget>[
|
|
|
+ ClipOval(
|
|
|
+ child: Image.network(
|
|
|
+ userInfo.icon,
|
|
|
+ width: 86,
|
|
|
+ height: 86,
|
|
|
+ fit: BoxFit.cover,
|
|
|
),
|
|
|
- Container(
|
|
|
- margin: EdgeInsets.only(left: 16),
|
|
|
- child: Column(
|
|
|
- mainAxisAlignment: MainAxisAlignment.center,
|
|
|
- crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
- children: <Widget>[
|
|
|
- Text(
|
|
|
- userInfo.nickname,
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 27,
|
|
|
- color: Colors.white,
|
|
|
- fontWeight: FontWeight.w700),
|
|
|
- ),
|
|
|
- Row(
|
|
|
- mainAxisAlignment: MainAxisAlignment.center,
|
|
|
- children: <Widget>[
|
|
|
- Container(
|
|
|
- margin: EdgeInsets.only(right: 4),
|
|
|
- child: SizedBox(
|
|
|
- width: 20,
|
|
|
- height: 20,
|
|
|
- child: Image.asset(
|
|
|
- "images/icon_jinbi_da_bai.png"),
|
|
|
- ),
|
|
|
+ ),
|
|
|
+ Container(
|
|
|
+ margin: EdgeInsets.only(left: 16),
|
|
|
+ child: Column(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
+ children: <Widget>[
|
|
|
+ Text(
|
|
|
+ userInfo.nickname,
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 27,
|
|
|
+ color: Colors.white,
|
|
|
+ fontWeight: FontWeight.w700),
|
|
|
+ ),
|
|
|
+ Row(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
+ children: <Widget>[
|
|
|
+ Container(
|
|
|
+ margin: EdgeInsets.only(right: 4),
|
|
|
+ child: SizedBox(
|
|
|
+ width: 20,
|
|
|
+ height: 20,
|
|
|
+ child: Image.asset(
|
|
|
+ "images/icon_jinbi_da_bai.png"),
|
|
|
),
|
|
|
- Text(
|
|
|
- userInfo.moneyCoin.toString(),
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 16,
|
|
|
- color: Colors.white,
|
|
|
- fontWeight: FontWeight.w700),
|
|
|
- )
|
|
|
- ],
|
|
|
- ),
|
|
|
- ],
|
|
|
- ),
|
|
|
- )
|
|
|
- ],
|
|
|
- ),
|
|
|
+ ),
|
|
|
+ Text(
|
|
|
+ userInfo.moneyCoin.toString(),
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 16,
|
|
|
+ color: Colors.white,
|
|
|
+ fontWeight: FontWeight.w700),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
),
|
|
|
),
|
|
|
- Expanded(
|
|
|
- flex: 1,
|
|
|
- child: Container(
|
|
|
- padding: EdgeInsets.only(top: 10),
|
|
|
- child: Column(
|
|
|
- children: <Widget>[
|
|
|
- DrawerMenu(
|
|
|
- "images/icon_qianbao.png",
|
|
|
- "我的钱包",
|
|
|
- onTap: () {
|
|
|
- print("object");
|
|
|
- Navigator.of(context).pop();
|
|
|
- },
|
|
|
- ),
|
|
|
- Divder(),
|
|
|
- DrawerMenu("images/icon_zhanji.png", "我的战绩"),
|
|
|
- Divder(),
|
|
|
- DrawerMenu("images/icon_bangding.png", "游戏绑定")
|
|
|
- ],
|
|
|
- ),
|
|
|
+ ),
|
|
|
+ Expanded(
|
|
|
+ flex: 1,
|
|
|
+ child: Container(
|
|
|
+ padding: EdgeInsets.only(top: 10),
|
|
|
+ child: Column(
|
|
|
+ children: <Widget>[
|
|
|
+ DrawerMenu(
|
|
|
+ "images/icon_qianbao.png",
|
|
|
+ "我的钱包",
|
|
|
+ onTap: () {
|
|
|
+ print("object");
|
|
|
+ Navigator.of(context).pop();
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ Divder(),
|
|
|
+ DrawerMenu("images/icon_zhanji.png", "我的战绩"),
|
|
|
+ Divder(),
|
|
|
+ DrawerMenu("images/icon_bangding.png", "游戏绑定")
|
|
|
+ ],
|
|
|
),
|
|
|
- )
|
|
|
- ],
|
|
|
- ),
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
),
|
|
|
));
|
|
|
},
|