@@ -10,15 +10,9 @@ Future<void> showErrWarnDialog(BuildContext context, String title, String conten
1010 builder: (context)=> AlertDialog (
1111 title: Text (
1212 title,
13- style: GoogleFonts .notoSansSc (
14- color: Theme .of (context).brightness== Brightness .dark ? Colors .white : Colors .black
15- ),
1613 ),
1714 content: Text (
1815 content,
19- style: GoogleFonts .notoSansSc (
20- color: Theme .of (context).brightness== Brightness .dark ? Colors .white : Colors .black
21- ),
2216 ),
2317 actions: [
2418 ElevatedButton (
@@ -35,18 +29,8 @@ Future<bool> showConfirmDialog(BuildContext context, String title, String conten
3529 await showDialog (
3630 context: context,
3731 builder: (context)=> AlertDialog (
38- title: Text (
39- title,
40- style: GoogleFonts .notoSansSc (
41- color: Theme .of (context).brightness== Brightness .dark ? Colors .white : Colors .black
42- ),
43- ),
44- content: Text (
45- content,
46- style: GoogleFonts .notoSansSc (
47- color: Theme .of (context).brightness== Brightness .dark ? Colors .white : Colors .black
48- ),
49- ),
32+ title: Text (title),
33+ content: Text (content),
5034 actions: [
5135 TextButton (
5236 onPressed: () => Navigator .pop (context),
@@ -71,12 +55,7 @@ Future<void> showAbout(BuildContext context) async {
7155 showDialog (
7256 context: context,
7357 builder: (BuildContext context)=> AlertDialog (
74- title: Text (
75- '关于' ,
76- style: GoogleFonts .notoSansSc (
77- color: Theme .of (context).brightness== Brightness .dark ? Colors .white : Colors .black
78- ),
79- ),
58+ title: Text ('关于' ),
8059 content: Column (
8160 mainAxisSize: MainAxisSize .min,
8261 crossAxisAlignment: CrossAxisAlignment .center,
@@ -91,7 +70,6 @@ Future<void> showAbout(BuildContext context) async {
9170 style: GoogleFonts .notoSansSc (
9271 fontWeight: FontWeight .bold,
9372 fontSize: 18 ,
94- color: Theme .of (context).brightness== Brightness .dark ? Colors .white : Colors .black
9573 ),
9674 ),
9775 const SizedBox (height: 3 ,),
@@ -125,7 +103,6 @@ Future<void> showAbout(BuildContext context) async {
125103 '项目地址' ,
126104 style: GoogleFonts .notoSansSc (
127105 fontSize: 13 ,
128- color: Theme .of (context).brightness== Brightness .dark ? Colors .white : Colors .black
129106 ),
130107 ),
131108 )
@@ -157,7 +134,6 @@ Future<void> showAbout(BuildContext context) async {
157134 "许可证" ,
158135 style: GoogleFonts .notoSansSc (
159136 fontSize: 13 ,
160- color: Theme .of (context).brightness== Brightness .dark ? Colors .white : Colors .black
161137 ),
162138 ),
163139 )
@@ -186,32 +162,17 @@ Future<int> freqDialogContent(BuildContext context, int storeFreq) async {
186162 await showDialog (
187163 context: context,
188164 builder: (context)=> AlertDialog (
189- title: Text (
190- "设置更新频率" ,
191- style: GoogleFonts .notoSansSc (
192- color: Theme .of (context).brightness== Brightness .dark ? Colors .white : Colors .black
193- ),
194- ),
165+ title: Text ("设置更新频率" ),
195166 content: StatefulBuilder (
196167 builder: (BuildContext context, StateSetter setState)=> SizedBox (
197168 width: 400 ,
198169 child: Column (
199170 mainAxisSize: MainAxisSize .min,
200171 crossAxisAlignment: CrossAxisAlignment .start,
201172 children: [
202- Text (
203- "注意,推荐最小更新时间为1.5s (1500毫秒)\n 更新频率过高在一些下载服务器中可能会触发缓存机制" ,
204- style: GoogleFonts .notoSansSc (
205- color: Theme .of (context).brightness== Brightness .dark ? Colors .white : Colors .black
206- ),
207- ),
173+ Text ("注意,推荐最小更新时间为1.5s (1500毫秒)\n 更新频率过高在一些下载服务器中可能会触发缓存机制" ),
208174 const SizedBox (height: 10 ,),
209- Text (
210- "$freq 毫秒 / ${freq /1000 } 秒" ,
211- style: GoogleFonts .notoSansSc (
212- color: Theme .of (context).brightness== Brightness .dark ? Colors .white : Colors .black
213- ),
214- ),
175+ Text ("$freq 毫秒 / ${freq /1000 } 秒" ),
215176 const SizedBox (height: 5 ,),
216177 SliderTheme (
217178 data: SliderThemeData (
0 commit comments