mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-23 03:50:09 +08:00
opt dyn/reply text menu
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user