-
Notifications
You must be signed in to change notification settings - Fork 0
/
about_page.dart
executable file
·111 lines (107 loc) · 3.43 KB
/
about_page.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:worldfunclub/main.dart';
import 'package:worldfunclub/ui/settings/protocol/user_protocol_page.dart';
class AboutPage extends StatefulWidget {
@override
_AboutPageState createState() => _AboutPageState();
}
class _AboutPageState extends State<AboutPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("关于环球途乐会"),brightness: Brightness.dark,
),
body: Container(
color: Color(0xFFF5F5F5),
child: Column(
children: [
Container(
color: Colors.white,
child: ListTile(
title: Text("用户注册及使用App隐私协议"),
trailing: Icon(
Icons.navigate_next,
color: Color(0xffaaaaaa),
),
onTap: ()=>Navigator.of(context).push(MaterialPageRoute(builder: (builder)=>UserProtocolPage("用户注册及使用App隐私协议"))),
),
),
SizedBox(
height: 1.w,
),
Container(
color: Colors.white,
child: ListTile(
onTap: ()=>Navigator.of(context).push(MaterialPageRoute(builder: (builder)=>UserProtocolPage("环球途乐会用户协议和法律协议",type: false,))),
trailing: Icon(
Icons.navigate_next,
color: Color(0xffaaaaaa),
),
title: Text("环球途乐会用户协议和法律协议"),
),
),
if(enable)
SizedBox(
height: 1.w,
),
if(enable)
Container(
color: Colors.white,
child: ListTile(
trailing: Icon(
Icons.navigate_next,
color: Color(0xffaaaaaa),
),
title: Text("消费者权益保障相关规则"),
),
),
if(enable)
SizedBox(
height: 1.w,
),
if(enable)
Container(
color: Colors.white,
child: ListTile(
trailing: Icon(
Icons.navigate_next,
color: Color(0xffaaaaaa),
),
title: Text("平台证照"),
),
),
SizedBox(
height: 10.w,
),
Container(
color: Colors.white,
child: ListTile(
onTap: version,
trailing: Icon(
Icons.navigate_next,
color: Color(0xffaaaaaa),
),
title: Text("当前版本"),
subtitle: Text("Flutter ${Platform.version}"),
),
),
],
),
),
);
}
void version() {
showDialog(
context: context,
builder: (b) => AboutDialog(
applicationName: "环球途乐会",
applicationVersion: "Flutter-1.0.0",
applicationLegalese:
"请将109行字符串换成关于app的文案。",
applicationIcon: Image.asset("images/ic_launcher.png",width: 55.w,height: 55.w,),
));
}
}