mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-09 04:24:53 +08:00
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user