mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-10 03:57:49 +08:00
@@ -138,9 +138,10 @@ abstract class CommonPublishPageState<T extends CommonPublishPage>
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> hidePanel() async {
|
||||
Future<void> hidePanel([_]) async {
|
||||
if (focusNode.hasFocus) {
|
||||
await Future.delayed(const Duration(milliseconds: 100));
|
||||
if (!mounted) return;
|
||||
focusNode.unfocus();
|
||||
}
|
||||
updateInputView(isReadOnly: false);
|
||||
|
||||
@@ -123,9 +123,7 @@ class _WhisperDetailPageState
|
||||
children: [
|
||||
Expanded(
|
||||
child: Listener(
|
||||
onPointerDown: (event) {
|
||||
hidePanel();
|
||||
},
|
||||
onPointerDown: hidePanel,
|
||||
behavior: HitTestBehavior.opaque,
|
||||
child: Align(
|
||||
alignment: Alignment.topCenter,
|
||||
|
||||
Reference in New Issue
Block a user