refactor: 下载与镜像设置移入设置页(镜像线路/测速/并发数),下载页保留跳转入口
This commit is contained in:
1 parent
493f22b955
commit
3362c8e165
5 files changed
+196
-80
No files matched your search
@@ -12,6 +12,7 @@ import '../../core/widgets/background_widget.dart';
|
||||
import '../../providers/theme_provider.dart';
|
||||
import '../../providers/wallpaper_provider.dart';
|
||||
import 'help_page.dart';
|
||||
import 'download_settings_page.dart';
|
||||
|
||||
class SettingsPage extends StatefulWidget {
|
||||
const SettingsPage({super.key});
|
||||
@@ -279,6 +280,19 @@ class _SettingsPageState extends State<SettingsPage> {
|
||||
],
|
||||
const Divider(),
|
||||
|
||||
// ---------- 下载与镜像 ----------
|
||||
ListTile(
|
||||
leading: const Icon(Icons.download_outlined),
|
||||
title: const Text('下载与镜像设置'),
|
||||
subtitle: const Text('镜像线路、测速选线、同时下载任务数'),
|
||||
trailing: const Icon(Icons.chevron_right),
|
||||
onTap: () => Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (_) => const DownloadSettingsPage()),
|
||||
),
|
||||
),
|
||||
const Divider(),
|
||||
|
||||
// ---------- 使用教程 ----------
|
||||
ListTile(
|
||||
leading: const Icon(Icons.menu_book_outlined),
|
||||
|
||||
Reference in new issue
Block a user