Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-17 10:11:40 +08:00
parent a161fa5e58
commit 096b057f81
3 changed files with 3 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ abstract class CommonPublishPageState<T extends CommonPublishPage>
late final controller = ChatBottomPanelContainerController<PanelType>();
TextEditingController get editController;
Rx<PanelType> panelType = PanelType.none.obs;
final Rx<PanelType> panelType = PanelType.none.obs;
late final RxBool readOnly = false.obs;
late final RxBool enablePublish = false.obs;

View File

@@ -462,6 +462,7 @@ class LiveRoomController extends GetxController {
fromEmote: fromEmote,
liveRoomController: this,
items: savedDanmaku,
autofocus: !fromEmote,
onSave: (msg) {
if (msg.isEmpty) {
savedDanmaku?.clear();

View File

@@ -20,6 +20,7 @@ class LiveSendDmPanel extends CommonRichTextPubPage {
super.key,
super.items,
super.onSave,
super.autofocus = true,
this.fromEmote = false,
required this.liveRoomController,
});