import 'dart:io'; import 'package:flutter/material.dart'; import 'package:huixiang/generated/l10n.dart'; import 'package:huixiang/view_widget/mine_vip_view.dart'; import 'package:flutter_swiper_null_safety/flutter_swiper_null_safety.dart'; class MineVipLevelPage extends StatefulWidget { @override State createState() { return _MineVipLevelPage(); } } class _MineVipLevelPage extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text( S.of(context).wodehuiyuandengji, style: TextStyle( color: Colors.black, fontWeight: FontWeight.bold, fontSize: 18, ), ), centerTitle: false, backgroundColor: Color(0xFFFFFFFF), elevation: 0, leading: GestureDetector( onTap: () { Navigator.of(context).pop(); }, child: Container( alignment: Alignment.centerRight, margin: EdgeInsets.only(left: 10), padding: EdgeInsets.all(6), child: Icon( Icons.arrow_back_ios, color: Colors.black, size: 24, ), ), ), titleSpacing: 2, leadingWidth: 56, ), body: Column( children: [ AspectRatio( aspectRatio: Platform.isAndroid ? 1.7 : 2.0, child: Swiper( viewportFraction: 0.95, loop: false, itemBuilder: (context, position) { return MineVipView(position + 1, padding: 6,); }, itemCount: 5, ), ), Expanded( flex: 1, child: Container( width: double.infinity, margin: EdgeInsets.fromLTRB(0, 16, 0, 0), padding: EdgeInsets.fromLTRB(16, 16, 16, 16), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(8), topRight: Radius.circular(8)), ), child: Column( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( S.of(context).huiyuandengjishuoming, style: TextStyle( fontWeight: FontWeight.bold, fontSize: 16, color: Colors.black), ), SizedBox( height: 12, ), Row( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.center, children: [ Container( width: 6, height: 6, margin: EdgeInsets.fromLTRB(4, 7, 4, 7), decoration: BoxDecoration( borderRadius: BorderRadius.circular(3), color: Color(0xFF32A060) ), ), Text( S.of(context).chenggongdengluzhuce, style: TextStyle( textBaseline: TextBaseline.alphabetic, fontSize: 14, color: Color(0xFF353535)), ), ], ), SizedBox( height: 20, ), Row( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ Expanded( child: Text( S.of(context).huiyuandengji, textAlign: TextAlign.center, style: TextStyle( fontWeight: FontWeight.bold, fontSize: 14, color: Color(0xFF353535)), ), flex: 1, ), Expanded( child: Text( S.of(context).jifen, textAlign: TextAlign.center, style: TextStyle( fontWeight: FontWeight.bold, fontSize: 14, color: Color(0xFF353535)), ), flex: 1, ), ], ), SizedBox( height: 16, ), Row( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ Expanded( child: Text( S.of(context).qingtonghuiyuan, textAlign: TextAlign.center, style: TextStyle( fontSize: 14, color: Color(0xFF353535), ), ), flex: 1, ), Expanded( child: Text( "0-1499", textAlign: TextAlign.center, style: TextStyle( fontSize: 14, color: Color(0xFF353535), ), ), flex: 1, ), ], ), SizedBox( height: 16, ), Row( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ Expanded( child: Text( S.of(context).baiyinhuiyuan, textAlign: TextAlign.center, style: TextStyle( fontSize: 14, color: Color(0xFF353535), ), ), flex: 1, ), Expanded( child: Text( "1500-6999", textAlign: TextAlign.center, style: TextStyle( fontSize: 14, color: Color(0xFF353535), ), ), flex: 1, ), ], ), SizedBox( height: 16, ), Row( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ Expanded( child: Text( S.of(context).huangjinhuiyuan, textAlign: TextAlign.center, style: TextStyle( fontSize: 14, color: Color(0xFF353535), ), ), flex: 1, ), Expanded( child: Text( "7000-12999", textAlign: TextAlign.center, style: TextStyle( fontSize: 14, color: Color(0xFF353535), ), ), flex: 1, ), ], ), SizedBox( height: 16, ), Row( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ Expanded( child: Text( S.of(context).zuanshihuiyuan, textAlign: TextAlign.center, style: TextStyle( fontSize: 14, color: Color(0xFF353535), ), ), flex: 1, ), Expanded( child: Text( "13000-50000", textAlign: TextAlign.center, style: TextStyle( fontSize: 14, color: Color(0xFF353535), ), ), flex: 1, ), ], ), SizedBox( height: 40, ), Text( S.of(context).jifendejisuanshuoming, style: TextStyle( fontWeight: FontWeight.bold, fontSize: 16, color: Colors.black), ), SizedBox( height: 12, ), Row( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.center, children: [ Container( width: 6, height: 6, margin: EdgeInsets.fromLTRB(4, 7, 4, 7), decoration: BoxDecoration( borderRadius: BorderRadius.circular(3), color: Color(0xFF32A060) ), ), Text( S.of(context).yonghuxiaofeijifen, style: TextStyle( textBaseline: TextBaseline.alphabetic, fontSize: 14, color: Color(0xFF353535)), ), ], ), SizedBox( height: 12, ), Row( mainAxisAlignment: MainAxisAlignment.start, mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [ Container( width: 6, height: 6, margin: EdgeInsets.fromLTRB(4, 7, 4, 7), decoration: BoxDecoration( borderRadius: BorderRadius.circular(3), color: Color(0xFF32A060) ), ), Expanded( child: Text( S.of(context).youhuiquanwufajileijifen, style: TextStyle( fontSize: 14, color: Color(0xFF353535)), ), flex: 1, ), ], ), ], ), ), ), ], ), ); } }