fix RichTextField affinity on desktop

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-17 11:02:09 +08:00
parent 2232bc009d
commit db7ad269b2

View File

@@ -3341,6 +3341,13 @@ class EditableTextState extends State<EditableText>
affinity: _value.selection.affinity, affinity: _value.selection.affinity,
), ),
); );
if (remoteValue != null) {
remoteValue = remoteValue.copyWith(
selection: remoteValue.selection.copyWith(
affinity: _value.selection.affinity,
),
);
}
} }
if (widget.readOnly) { if (widget.readOnly) {