opt: save reply

This commit is contained in:
bggRGjQaUbCoE
2024-09-02 21:29:12 +08:00
parent 915688e4d1
commit 94d5d60656
4 changed files with 9 additions and 3 deletions

View File

@@ -98,7 +98,10 @@ class _ReplyPageState extends State<ReplyPage>
highlightColor: Colors.transparent,
splashColor: Colors.transparent,
splashFactory: NoSplashFactory(),
onTap: Get.back,
onTap: () {
FocusScope.of(context).unfocus();
Get.back();
},
),
),
_buildInputView(),
@@ -386,5 +389,8 @@ class _ReplyPageState extends State<ReplyPage>
selection:
TextSelection.collapsed(offset: cursorPosition + emote.text!.length),
);
if (widget.onSaveReply != null) {
widget.onSaveReply!(_replyContentController.text);
}
}
}