Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

fix c60a8e5

Prediditbcecbc43f127
diff --git a/lib/pages/player/player_item.dart b/lib/pages/player/player_item.dart
index a6611834..99e7d330 100644
--- a/lib/pages/player/player_item.dart
+++ b/lib/pages/player/player_item.dart
@@ -562,6 +562,11 @@ class _PlayerItemState extends State<PlayerItem>
void showDanmakuSwitch() {
SmartDialog.show(
useAnimation: false,
+ onDismiss: () {
+ // workaround for foucus node.
+ // input in textfield generated by flutter_smart_dialog will diable autofocus, which will cause the keyboard event lost.
+ _focusNode.requestFocus();
+ },
builder: (context) {
final TextEditingController searchTextController =
TextEditingController();
@@ -573,9 +578,6 @@ class _PlayerItemState extends State<PlayerItem>
hintText: '番剧名',
),
onSubmitted: (keyword) {
- // workaround for foucus node.
- // input in textfield generated by flutter_smart_dialog will diable autofocus, which will cause the keyboard event lost.
- _focusNode.requestFocus();
showDanmakuSeachDialog(keyword);
},
),
@@ -592,9 +594,6 @@ class _PlayerItemState extends State<PlayerItem>
),
TextButton(
onPressed: () {
- // workaround for foucus node.
- // input in textfield generated by flutter_smart_dialog will diable autofocus, which will cause the keyboard event lost.
- _focusNode.requestFocus();
showDanmakuSeachDialog(searchTextController.text);
},
child: const Text(