opt publish page

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-28 12:58:50 +08:00
parent cf6754db0a
commit a6b4e6360c
7 changed files with 57 additions and 76 deletions

View File

@@ -498,7 +498,6 @@ class _CreateDynPanelState extends CommonRichTextPubPageState<CreateDynPanel> {
onPressed: _isEdit || _isPrivate.value
? null
: () async {
controller.keepChatPanel();
DateTime nowDate = DateTime.now();
final selectedDate = await showDatePicker(
context: context,
@@ -544,7 +543,6 @@ class _CreateDynPanelState extends CommonRichTextPubPageState<CreateDynPanel> {
);
}
}
controller.restoreChatPanel();
},
child: const Text('定时发布'),
)
@@ -649,7 +647,6 @@ class _CreateDynPanelState extends CommonRichTextPubPageState<CreateDynPanel> {
Widget get voteBtn => ToolbarIconButton(
onPressed: () async {
controller.keepChatPanel();
final voteItem = editController.items.firstWhereOrNull(
(e) => e.type == .vote,
);
@@ -694,7 +691,6 @@ class _CreateDynPanelState extends CommonRichTextPubPageState<CreateDynPanel> {
);
}
}
controller.restoreChatPanel();
},
icon: const Icon(Icons.bar_chart_rounded, size: 24),
tooltip: '投票',
@@ -812,7 +808,6 @@ class _CreateDynPanelState extends CommonRichTextPubPageState<CreateDynPanel> {
double _topicOffset = 0;
Future<void> _onSelectTopic() async {
controller.keepChatPanel();
TopicItem? res = await SelectTopicPanel.onSelectTopic(
context,
offset: _topicOffset,
@@ -821,7 +816,6 @@ class _CreateDynPanelState extends CommonRichTextPubPageState<CreateDynPanel> {
if (res != null) {
_topic.value = Pair(first: res.id, second: res.name);
}
controller.restoreChatPanel();
}
@override
@@ -879,7 +873,6 @@ class _CreateDynPanelState extends CommonRichTextPubPageState<CreateDynPanel> {
}
Future<void> _onReserve() async {
controller.keepChatPanel();
final ReserveInfoData? reserveInfo = await Navigator.of(context).push(
GetPageRoute(
page: () => CreateReservePage(sid: _reserveCard.value?.id),
@@ -888,6 +881,5 @@ class _CreateDynPanelState extends CommonRichTextPubPageState<CreateDynPanel> {
if (reserveInfo != null) {
_reserveCard.value = reserveInfo;
}
controller.restoreChatPanel();
}
}