1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- import 'package:flutter/material.dart';
- import 'package:flutter/services.dart';
- import 'package:shuqi/public.dart';
- import 'me_header.dart';
- import '../setting_page.dart';
- import 'me_cell.dart';
- /// Description: 我的页面
- /// Time : 10/10/2023 Tuesday
- /// Author : liuyuqi.gov@msn.cn
- class MinePage extends StatelessWidget {
- Widget buildCells(BuildContext context) {
- return Container(
- child: Column(
- children: <Widget>[
- MeCell(
- title: '钱包',
- iconName: 'assets/img/me_wallet.png',
- onPressed: () {},
- ),
- MeCell(
- title: '消费充值记录',
- iconName: 'assets/img/me_record.png',
- onPressed: () {},
- ),
- MeCell(
- title: '购买的书',
- iconName: 'assets/img/me_buy.png',
- onPressed: () {},
- ),
- MeCell(
- title: '我的会员',
- iconName: 'assets/img/me_vip.png',
- onPressed: () {},
- ),
- MeCell(
- title: '绑兑换码',
- iconName: 'assets/img/me_coupon.png',
- onPressed: () {},
- ),
- MeCell(
- title: '阅读之约',
- iconName: 'assets/img/me_date.png',
- onPressed: () {},
- ),
- MeCell(
- title: '我的收藏',
- iconName: 'assets/img/me_favorite.png',
- onPressed: () {},
- ),
- MeCell(
- title: '设置',
- iconName: 'assets/img/me_setting.png',
- onPressed: () {
- Navigator.push(context, MaterialPageRoute(builder: (context) {
- return SettingPage();
- }));
- },
- ),
- MeCell(
- title: 'Flutter版 书旗小说',
- iconName: 'assets/img/me_feedback.png',
- onPressed: () {
- AppNavigator.pushWeb(context, 'https://github.com/huanxsd/flutter_shuqi', 'Flutter');
- },
- ),
- MeCell(
- title: 'SwiftUI版 书旗小说',
- iconName: 'assets/img/me_action.png',
- onPressed: () {
- AppNavigator.pushWeb(context, 'https://github.com/huanxsd/swiftui-shuqi-reader', 'SwiftUI');
- },
- ),
- ],
- ),
- );
- }
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- body: AnnotatedRegion(
- value: SystemUiOverlayStyle.dark,
- child: Container(
- color: Colors.white,
- child: ListView(
- children: <Widget>[
- MeHeader(),
- SizedBox(height: 10),
- buildCells(context),
- ],
- ),
- ),
- ),
- );
- }
- }
|