minimalSelectionControls function
The platform's selection handles, as TextField picks them for
selectionControls: null (Material's on Android, Cupertino's on iOS, the
desktops' own, which draw none), with one change: a handle the field
hides takes no tap. Flutter keeps a focused field's handles in the
overlay while hidden, faded to nothing, and the drop under its caret
still took a tap, so a tap on the top of the field below a focused one
(a form's next line) went to a handle no one could see.
Implementation
TextSelectionControls minimalSelectionControls(BuildContext context) =>
switch (Theme.of(context).platform) {
TargetPlatform.iOS => _iosHandles,
TargetPlatform.macOS => _macHandles,
TargetPlatform.android || TargetPlatform.fuchsia => _materialHandles,
TargetPlatform.linux || TargetPlatform.windows => _desktopHandles,
};