opt: enableDlna switch callFn
This commit is contained in:
@ -190,11 +190,14 @@ class _ExtraSettingState extends State<ExtraSetting> {
|
|||||||
setKey: SettingBoxKey.enableRelatedVideo,
|
setKey: SettingBoxKey.enableRelatedVideo,
|
||||||
defaultVal: true,
|
defaultVal: true,
|
||||||
),
|
),
|
||||||
const SetSwitchItem(
|
SetSwitchItem(
|
||||||
title: '视频投屏开关',
|
title: '视频投屏开关',
|
||||||
subTitle: '打开后将在播放器右上角显示投屏入口',
|
subTitle: '打开后将在播放器右上角显示投屏入口',
|
||||||
setKey: SettingBoxKey.enableDlna,
|
setKey: SettingBoxKey.enableDlna,
|
||||||
defaultVal: false,
|
defaultVal: false,
|
||||||
|
callFn: (bool val) {
|
||||||
|
GlobalDataCache.enableDlna = val;
|
||||||
|
},
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
dense: false,
|
dense: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user