SteamCloudGame/lib/tools/me/property/property_page.dart
2024-11-23 15:25:11 +08:00

157 lines
4.8 KiB
Dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class PropertyPage extends StatefulWidget {
const PropertyPage({super.key});
@override
State<PropertyPage> createState() => _PropertyPageState();
}
class _PropertyPageState extends State<PropertyPage> {
@override
Widget build(BuildContext context) {
final size = MediaQuery.of(context).size;
return Scaffold(
backgroundColor: const Color(0xFF17181A),
body: Column(
children: [
Container(
width: size.width,
height: 50,
margin: EdgeInsets.only(top: MediaQuery.of(context).padding.top),
child: Stack(
alignment: Alignment.center,
children: [
Text(
"我的资产",
style: TextStyle(fontSize: 16, color: Color(0xFFD6D6D7)),
),
Positioned(
left: 14,
child: GestureDetector(
onTap: () {
Navigator.pop(context);
},
child: Image(
width: 19,
height: 26,
image: AssetImage('assets/images/btn_fanhui.png'),
),
),
)
],
),
),
///钻石数量
Container(
width: size.width,
height: 80,
margin: EdgeInsets.only(left: 14, right: 14, top: 20),
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(11)),
gradient: LinearGradient(
begin: Alignment.centerLeft,
end: Alignment.centerRight,
colors: [
Color(0xFF0978FF),
Color(0xFF39ADFE),
],
),
),
child: Stack(
children: [
Positioned(
left: 18,
top: 16,
child: Text(
"当前钻石数量",
style: TextStyle(fontSize: 11, color: Color(0xFFE2F3FF)),
)),
Positioned(
left: 18,
top: 34,
child: Text(
"0",
style: TextStyle(fontSize: 29, color: Colors.white),
)),
],
),
),
///资产收入
GestureDetector(
onTap: () {
Navigator.pushNamed(context, "/IncomePage");
},
child: Container(
height: 60,
margin: EdgeInsets.only(top: 18, left: 15, right: 15),
decoration: BoxDecoration(
color: Color(0xFF202530),
borderRadius: BorderRadius.all(Radius.circular(11)),
),
child: Row(
children: [
Container(
margin: EdgeInsets.only(left: 14),
child: Text(
"资产收入",
style: TextStyle(fontSize: 14, color: Color(0xFFD6D6D7)),
),
),
Expanded(child: Container()),
Container(
margin: EdgeInsets.only(right: 23),
child: Image(
width: 4,
height: 8,
image: AssetImage('assets/images/ic_arrow.png'),
),
),
],
),
),
),
///资产支出
GestureDetector(
onTap: () {
Navigator.pushNamed(context, "/ExpensesPage");
},
child: Container(
height: 60,
margin: EdgeInsets.only(top: 18, left: 15, right: 15),
decoration: BoxDecoration(
color: Color(0xFF202530),
borderRadius: BorderRadius.all(Radius.circular(11)),
),
child: Row(
children: [
Container(
margin: EdgeInsets.only(left: 14),
child: Text(
"资产支出",
style: TextStyle(fontSize: 14, color: Color(0xFFD6D6D7)),
),
),
Expanded(child: Container()),
Container(
margin: EdgeInsets.only(right: 23),
child: Image(
width: 4,
height: 8,
image: AssetImage('assets/images/ic_arrow.png'),
),
),
],
),
),
),
],
),
);
}
}