import 'package:flutter/material.dart'; class SettingPage extends StatefulWidget { const SettingPage({super.key}); @override State createState() => _SettingPageState(); } class _SettingPageState extends State { @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'), ), ), ) ], ), ), ///用户协议 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'), ), ), ], ), ), ), ///隐私政策 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'), ), ), ], ), ), ), ///实名认证 GestureDetector( onTap: () { Navigator.pushNamed(context, "/RealNamePage"); }, 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, "/AboutPage"); }, 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'), ), ), ], ), ), ), ], ), ); } }