mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
## Description This PR fixes the default selection on desktop when a text field is gaining focus. Before this PR, when a text field is focused, the selection was collapsed at the end for all platforms except on Web where the entire content was selected. After this PR, when a text field is focused, the entire content is selected on desktop and Web, and the selection is collapsed at the end on mobile platforms. The implementation extends the work done in https://github.com/flutter/flutter/pull/119583 which implemented this feature for web. ## Related Issue Fixes https://github.com/flutter/flutter/issues/150339. ## Tests Updates 1 test. Fixes 2 tests.