@@ -143,44 +143,6 @@ class _SettingFindPageState extends State<SettingFindPage> {
143143 FilteringTextInputFormatter .digitsOnly
144144 ],
145145 ),
146- const SizedBox (height: CTheme .padding * 5 ),
147- SettingSwitch (
148- margin: EdgeInsets .zero,
149- title: settingController.find.enableYoutubeSearch
150- ? '已启用Youtube搜索' .tr
151- : '未启用Youtube搜索' .tr,
152- isOn: settingController.find.enableYoutubeSearch,
153- icon: Icons .smart_display,
154- onChanged: (v) => settingController.find.enableYoutubeSearch = v,
155- ),
156- const SizedBox (height: CTheme .padding * 5 ),
157- SettingSwitch (
158- margin: EdgeInsets .zero,
159- title: settingController.find.enableBilibiliSearch
160- ? '已启用Bilibili搜索' .tr
161- : '未启用Bilibili搜索' .tr,
162- isOn: settingController.find.enableBilibiliSearch,
163- icon: Icons .smart_display,
164- onChanged: (v) => settingController.find.enableBilibiliSearch = v,
165- ),
166- ],
167- );
168- }
169-
170- Widget buildOthers (BuildContext context) {
171- return Column (
172- children: [
173- const SizedBox (height: CTheme .margin * 5 , width: double .infinity),
174- if (isFFmpegKitSupportPlatform ())
175- SettingSwitch (
176- margin: EdgeInsets .zero,
177- title: settingController.find.enableVideoToAudio
178- ? '已启用视频转音频' .tr
179- : '未启用视频转音频' .tr,
180- isOn: settingController.find.enableVideoToAudio,
181- icon: Icons .transform,
182- onChanged: (v) => settingController.find.enableVideoToAudio = v,
183- ),
184146 ],
185147 );
186148 }
@@ -194,7 +156,6 @@ class _SettingFindPageState extends State<SettingFindPage> {
194156 child: ListView (
195157 children: [
196158 buildSearch (context, focusScopeNode),
197- buildOthers (context),
198159 ],
199160 ),
200161 ),
0 commit comments