From 3362bd97b0991e9f203c24e7cb749235730af809 Mon Sep 17 00:00:00 2001 From: orz12 Date: Sun, 18 Aug 2024 17:08:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=AE=9A=E5=90=91?= =?UTF-8?q?=E6=B5=81=E9=87=8F=E6=94=AF=E6=8C=81=E4=BC=AA=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/setting/video_setting.dart | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/lib/pages/setting/video_setting.dart b/lib/pages/setting/video_setting.dart index c5a16560..d9faec31 100644 --- a/lib/pages/setting/video_setting.dart +++ b/lib/pages/setting/video_setting.dart @@ -85,6 +85,29 @@ class _VideoSettingState extends State { setKey: SettingBoxKey.p1080, defaultVal: true, ), + ListTile( + enabled: false, + onTap: null, + title: Text("b站定向流量支持", style: titleStyle), + subtitle: + Text("若套餐含b站定向流量,则会自动使用。可查阅运营商的流量记录确认。", style: subTitleStyle), + leading: const Icon(Icons.perm_data_setting_outlined), + trailing: Transform.scale( + alignment: Alignment.centerRight, // 缩放Switch的大小后保持右侧对齐, 避免右侧空隙过大 + scale: 0.8, + child: Switch( + thumbIcon: WidgetStateProperty.resolveWith( + (Set states) { + if (states.isNotEmpty && + states.first == WidgetState.selected) { + return const Icon(Icons.done); + } + return null; // All other states will use the default thumbIcon. + }), + value: true, + onChanged: null), + ), + ), ListTile( title: Text('CDN 设置', style: titleStyle), leading: Icon(MdiIcons.cloudPlusOutline),