基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
fix danmaku settings overlay
Predidite44a68add17b
diff --git a/lib/pages/player/player_item.dart b/lib/pages/player/player_item.dartindex bc48ed25..814a2f5a 100644--- a/lib/pages/player/player_item.dart+++ b/lib/pages/player/player_item.dart@@ -1560,11 +1560,8 @@ class _PlayerItemState extends State<PlayerItem>onSelected: (value) {if (value == 0) {KazumiDialog.show(builder: (context) {- return SizedBox(- height: 440,- child: DanmakuSettingsWindow(- danmakuController:- danmakuController));+ return DanmakuSettingsWindow(+ danmakuController: danmakuController);});}if (value == 1) {diff --git a/lib/pages/settings/danmaku/danmaku_settings_window.dart b/lib/pages/settings/danmaku/danmaku_settings_window.dartindex 6fca7e20..ceccf563 100644--- a/lib/pages/settings/danmaku/danmaku_settings_window.dart+++ b/lib/pages/settings/danmaku/danmaku_settings_window.dart@@ -16,8 +16,9 @@ class _DanmakuSettingsWindowState extends State<DanmakuSettingsWindow> {@overrideWidget build(BuildContext context) {- final children = <Widget>[- Expanded(+ return Dialog(+ child: Padding(+ padding: const EdgeInsets.all(16.0),child: SingleChildScrollView(child: Column(crossAxisAlignment: CrossAxisAlignment.start,@@ -28,17 +29,16 @@ class _DanmakuSettingsWindowState extends State<DanmakuSettingsWindow> {min: 10,max: 32,divisions: 22,- label: widget.danmakuController.option.fontSize- .toString(),+ label: widget.danmakuController.option.fontSize.toString(),onChanged: (value) {- setState(() => widget.danmakuController- .updateOption(widget.danmakuController.option.copyWith(- fontSize: value,- )));+ setState(() => widget.danmakuController.updateOption(+ widget.danmakuController.option.copyWith(+ fontSize: value,+ ),+ ));setting.put(SettingBoxKey.danmakuFontSize, value);},),-const Text('弹幕区域'),Slider(value: widget.danmakuController.option.area,@@ -48,15 +48,14 @@ class _DanmakuSettingsWindowState extends State<DanmakuSettingsWindow> {label:'${(widget.danmakuController.option.area * 100).round()}%',onChanged: (value) {- setState(() => widget.danmakuController- .updateOption(widget.danmakuController.option.copyWith(- area: value,- )));+ setState(() => widget.danmakuController.updateOption(+ widget.danmakuController.option.copyWith(+ area: value,+ ),+ ));setting.put(SettingBoxKey.danmakuArea, value);},),-- // Danmaku Area Sectionconst Text('弹幕不透明度'),Slider(value: widget.danmakuController.option.opacity,@@ -66,51 +65,53 @@ class _DanmakuSettingsWindowState extends State<DanmakuSettingsWindow> {label:'${(widget.danmakuController.option.opacity * 100).round()}%',onChanged: (value) {- setState(() => widget.danmakuController- .updateOption(widget.danmakuController.option.copyWith(- opacity: value,- )));- setting.put(SettingBoxKey.danmakuOpacity, double.parse(value.toStringAsFixed(1)));+ setState(() => widget.danmakuController.updateOption(+ widget.danmakuController.option.copyWith(+ opacity: value,+ ),+ ));+ setting.put(SettingBoxKey.danmakuOpacity,+ double.parse(value.toStringAsFixed(1)));},),-ListTile(title: const Text('隐藏滚动弹幕'),trailing: Switch(value: widget.danmakuController.option.hideScroll,onChanged: (value) {- setState(() => widget.danmakuController- .updateOption(widget.danmakuController.option.copyWith(- hideScroll: value,- )));+ setState(() => widget.danmakuController.updateOption(+ widget.danmakuController.option.copyWith(+ hideScroll: value,+ ),+ ));setting.put(SettingBoxKey.danmakuScroll, !value);},),),-ListTile(title: const Text('隐藏顶部弹幕'),trailing: Switch(value: widget.danmakuController.option.hideTop,onChanged: (value) {- setState(() => widget.danmakuController- .updateOption(widget.danmakuController.option.copyWith(- hideTop: value,- )));+ setState(() => widget.danmakuController.updateOption(+ widget.danmakuController.option.copyWith(+ hideTop: value,+ ),+ ));setting.put(SettingBoxKey.danmakuTop, !value);},),),-ListTile(title: const Text('隐藏底部弹幕'),trailing: Switch(value: widget.danmakuController.option.hideBottom,onChanged: (value) {- setState(() => widget.danmakuController- .updateOption(widget.danmakuController.option.copyWith(- hideBottom: value,- )));+ setState(() => widget.danmakuController.updateOption(+ widget.danmakuController.option.copyWith(+ hideBottom: value,+ ),+ ));setting.put(SettingBoxKey.danmakuBottom, !value);},),@@ -119,14 +120,6 @@ class _DanmakuSettingsWindowState extends State<DanmakuSettingsWindow> {),),),- ];- return Dialog(- child: Padding(- padding: const EdgeInsets.all(16.0),- child: Column(- children: children,- ),- ),);}}