opt pub panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-26 17:11:52 +08:00
parent db3b74e33f
commit 3edac65ae8
49 changed files with 879 additions and 360 deletions

View File

@@ -125,7 +125,6 @@ class _ReplyPageState extends CommonPublishPageState<ReplyPage> {
onPointerUp: (event) {
if (readOnly.value) {
updatePanelType(PanelType.keyboard);
selectKeyboard.value = true;
}
},
child: Obx(
@@ -170,13 +169,12 @@ class _ReplyPageState extends CommonPublishPageState<ReplyPage> {
() => ToolbarIconButton(
tooltip: '输入',
onPressed: () {
if (!selectKeyboard.value) {
selectKeyboard.value = true;
if (panelType.value != PanelType.keyboard) {
updatePanelType(PanelType.keyboard);
}
},
icon: const Icon(Icons.keyboard, size: 22),
selected: selectKeyboard.value,
selected: panelType.value == PanelType.keyboard,
),
),
const SizedBox(width: 10),
@@ -184,13 +182,12 @@ class _ReplyPageState extends CommonPublishPageState<ReplyPage> {
() => ToolbarIconButton(
tooltip: '表情',
onPressed: () {
if (selectKeyboard.value) {
selectKeyboard.value = false;
if (panelType.value != PanelType.emoji) {
updatePanelType(PanelType.emoji);
}
},
icon: const Icon(Icons.emoji_emotions, size: 22),
selected: !selectKeyboard.value,
selected: panelType.value == PanelType.emoji,
),
),
if (widget.root == 0) ...[