-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Closed
Labels
f: cupertinoflutter/packages/flutter/cupertino repositoryflutter/packages/flutter/cupertino repositoryf: focusFocus traversal, gaining or losing focusFocus traversal, gaining or losing focusframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
Control cupertino widgets like CupertinoCheckbox
and CupertinoRadio
have focusNode
and autofocus
, while these are missing in CupertinoSwitch
.
https://master-api.flutter.dev/flutter/cupertino/CupertinoCheckbox/CupertinoCheckbox.html
https://master-api.flutter.dev/flutter/cupertino/CupertinoRadio/CupertinoRadio.html
This is blocking #126637 (switch.dart
currently maintains its focus node for CupertinoSwitch
when using Switch.adaptive
which causes a bug)
Expected results
CupertinoSwitch
has focusNode
, onFocusChange
and autofocus
Actual results
CupertinoSwitch
doesn't have focusNode
, onFocusChange
and autofocus
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
[Paste your output here]
Metadata
Metadata
Assignees
Labels
f: cupertinoflutter/packages/flutter/cupertino repositoryflutter/packages/flutter/cupertino repositoryf: focusFocus traversal, gaining or losing focusFocus traversal, gaining or losing focusframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Type
Projects
Status
Done (PR merged)