opt dyn/reply text menu

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-16 20:25:21 +08:00
parent f7cd1aa502
commit 177493fe38
31 changed files with 550 additions and 268 deletions

View File

@@ -5111,9 +5111,11 @@ class EditableTextState extends State<EditableText>
) {
// Compare the current TextEditingValue with the pre-format new
// TextEditingValue value, in case the formatter would reject the change.
final shouldShowCaret = widget.readOnly
? _value.selection != value.selection
: _value != value;
final shouldShowCaret =
cause != .drag &&
(widget.readOnly
? _value.selection != value.selection
: _value != value);
if (shouldShowCaret) {
scheduleShowCaretOnScreen(withAnimation: true);
}