mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
The Windows, Linux, and GLFW embeddings (which all share a common code ancestry) pass TextInput.setEditingState selection base and extents straight through to the shared text model class. The model expects those values to be valid, but the framework sends -1/-1 for "invalid" selections, which happen for some empty text cases (e.g., TextFieldController.clear()). This translates those invalid selection values to an empty selection at the start of the string, as expected by the model. Fixes https://github.com/flutter/flutter/issues/59140
Description
Flutter makes it easy and fast to build beautiful apps for mobile and beyond
androidapp-frameworkcross-platformdartdart-platformdesktopflutterflutter-packagefuchsiaioslinux-desktopmacosmaterial-designmobilemobile-developmentskiawebweb-frameworkwindows
2.5 GiB
Languages
Dart
75%
C++
16.5%
Objective-C++
2.9%
Java
2.8%
Objective-C
0.7%
Other
1.9%