@@ -10,11 +10,16 @@ import 'package:provider/provider.dart';
10
10
import 'package:fun_android/view_model/theme_model.dart' ;
11
11
import 'package:url_launcher/url_launcher.dart' ;
12
12
13
+ ///
14
+ ///
15
+ ///
13
16
class SettingPage extends StatelessWidget {
14
17
@override
15
18
Widget build (BuildContext context) {
16
19
var iconColor = Theme .of (context).accentColor;
17
20
return Scaffold (
21
+ ///
22
+ ///
18
23
appBar: AppBar (
19
24
title: Text (S .of (context).setting),
20
25
),
@@ -28,6 +33,11 @@ class SettingPage extends StatelessWidget {
28
33
),
29
34
Material (
30
35
color: Theme .of (context).cardColor,
36
+
37
+ ///
38
+ ///
39
+ ///
40
+ ///
31
41
child: ProviderWidget <UseWebViewPluginModel >(
32
42
model: UseWebViewPluginModel (),
33
43
builder: (context, model, child) => ListTile (
@@ -57,9 +67,7 @@ class SettingPage extends StatelessWidget {
57
67
children: < Widget > [
58
68
Text (S .of (context).settingFont),
59
69
Text (
60
- ThemeModel .fontName (
61
- Provider .of <ThemeModel >(context,listen: false ).fontIndex,
62
- context),
70
+ ThemeModel .fontName (Provider .of <ThemeModel >(context, listen: false ).fontIndex, context),
63
71
style: Theme .of (context).textTheme.caption,
64
72
)
65
73
],
@@ -73,7 +81,7 @@ class SettingPage extends StatelessWidget {
73
81
shrinkWrap: true ,
74
82
itemCount: ThemeModel .fontValueList.length,
75
83
itemBuilder: (context, index) {
76
- var model = Provider .of <ThemeModel >(context,listen: false );
84
+ var model = Provider .of <ThemeModel >(context, listen: false );
77
85
return RadioListTile (
78
86
value: index,
79
87
onChanged: (index) {
@@ -100,9 +108,7 @@ class SettingPage extends StatelessWidget {
100
108
style: TextStyle (),
101
109
),
102
110
Text (
103
- LocaleModel .localeName (
104
- Provider .of <LocaleModel >(context).localeIndex,
105
- context),
111
+ LocaleModel .localeName (Provider .of <LocaleModel >(context).localeIndex, context),
106
112
style: Theme .of (context).textTheme.caption,
107
113
)
108
114
],
@@ -137,9 +143,7 @@ class SettingPage extends StatelessWidget {
137
143
child: ListTile (
138
144
title: Text (S .of (context).rate),
139
145
onTap: () async {
140
- LaunchReview .launch (
141
- androidAppId: "cn.phoenixsky.funandroid" ,
142
- iOSAppId: "1477299503" );
146
+ LaunchReview .launch (androidAppId: "cn.phoenixsky.funandroid" , iOSAppId: "1477299503" );
143
147
},
144
148
leading: Icon (
145
149
Icons .star,
@@ -156,16 +160,13 @@ class SettingPage extends StatelessWidget {
156
160
child: ListTile (
157
161
title: Text (S .of (context).feedback),
158
162
onTap: () async {
159
- var url =
160
- 'mailto:moran.fc@gmail.com?subject=FunAndroid%20Feedback&body=feedback' ;
163
+ var url = 'mailto:moran.fc@gmail.com?subject=FunAndroid%20Feedback&body=feedback' ;
161
164
if (await canLaunch (url)) {
162
165
await launch (url);
163
166
} else {
164
167
showToast (S .of (context).githubIssue);
165
168
await Future .delayed (Duration (seconds: 1 ));
166
- launch (
167
- 'https://github.com/phoenixsky/fun_android_flutter' ,
168
- forceSafariVC: false );
169
+ launch ('https://github.com/phoenixsky/fun_android_flutter' , forceSafariVC: false );
169
170
}
170
171
},
171
172
leading: Icon (
0 commit comments