fix: 设置项重复、更新内容高度溢出
This commit is contained in:
@ -95,6 +95,17 @@ class _AboutPageState extends State<AboutPage> {
|
|||||||
style: subTitleStyle,
|
style: subTitleStyle,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
ListTile(
|
||||||
|
onTap: () => _aboutController.panDownload(),
|
||||||
|
title: const Text('网盘下载'),
|
||||||
|
trailing: Text(
|
||||||
|
'提取码:pili',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 13,
|
||||||
|
color: Theme.of(context).colorScheme.outline,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
onTap: () => _aboutController.feedback(),
|
onTap: () => _aboutController.feedback(),
|
||||||
title: const Text('问题反馈'),
|
title: const Text('问题反馈'),
|
||||||
@ -195,6 +206,14 @@ class AboutController extends GetxController {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 从网盘下载
|
||||||
|
panDownload() {
|
||||||
|
launchUrl(
|
||||||
|
Uri.parse('https://www.123pan.com/s/9sVqVv-flu0A.html'),
|
||||||
|
mode: LaunchMode.externalApplication,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// 问题反馈
|
// 问题反馈
|
||||||
feedback() {
|
feedback() {
|
||||||
launchUrl(
|
launchUrl(
|
||||||
|
@ -90,18 +90,6 @@ class _PlaySettingState extends State<PlaySetting> {
|
|||||||
setKey: SettingBoxKey.enableAutoBrightness,
|
setKey: SettingBoxKey.enableAutoBrightness,
|
||||||
defaultVal: false,
|
defaultVal: false,
|
||||||
),
|
),
|
||||||
const SetSwitchItem(
|
|
||||||
title: '自动全屏',
|
|
||||||
subTitle: '视频开始播放时进入全屏',
|
|
||||||
setKey: SettingBoxKey.enableAutoEnter,
|
|
||||||
defaultVal: false,
|
|
||||||
),
|
|
||||||
const SetSwitchItem(
|
|
||||||
title: '自动退出',
|
|
||||||
subTitle: '视频结束播放时退出全屏',
|
|
||||||
setKey: SettingBoxKey.enableAutoExit,
|
|
||||||
defaultVal: false,
|
|
||||||
),
|
|
||||||
const SetSwitchItem(
|
const SetSwitchItem(
|
||||||
title: '双击快退/快进',
|
title: '双击快退/快进',
|
||||||
subTitle: '左侧双击快退,右侧双击快进',
|
subTitle: '左侧双击快退,右侧双击快进',
|
||||||
|
@ -215,18 +215,23 @@ class Utils {
|
|||||||
builder: (context) {
|
builder: (context) {
|
||||||
return AlertDialog(
|
return AlertDialog(
|
||||||
title: const Text('🎉 发现新版本 '),
|
title: const Text('🎉 发现新版本 '),
|
||||||
content: Column(
|
content: SizedBox(
|
||||||
mainAxisSize: MainAxisSize.min,
|
height: 280,
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
child: SingleChildScrollView(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
child: Column(
|
||||||
children: [
|
mainAxisSize: MainAxisSize.min,
|
||||||
Text(
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
data.tagName!,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
style: const TextStyle(fontSize: 20),
|
children: [
|
||||||
|
Text(
|
||||||
|
data.tagName!,
|
||||||
|
style: const TextStyle(fontSize: 20),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 8),
|
||||||
|
Text(data.body!),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
),
|
||||||
Text(data.body!),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
@ -245,11 +250,11 @@ class Utils {
|
|||||||
mode: LaunchMode.externalApplication,
|
mode: LaunchMode.externalApplication,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: const Text('网盘下载'),
|
child: const Text('网盘'),
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () => matchVersion(data),
|
onPressed: () => matchVersion(data),
|
||||||
child: const Text('Github下载'),
|
child: const Text('Github'),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user