Skip to content

CupertinoActionSheetAction: Add keyboard support (Ipad, IOS) #166398

Description

@fedorstepanovv

Steps to reproduce

  1. add showCupertinoModalPopup()
  2. Create a CupertinoActionSheet()
  3. Add a few CupertinoActionSheetAction to actions in CupertinoActionSheet
  4. Connect Apple's keyboard to Ipad (However i think even macbook's keyboard with simulator will suffice)
  5. Try to navigate between actions (pressing arrow keys)

Expected results

Native ios apps support this type of navigation. Typically users tap on an arrow key and then press enter to choose the needed action.

Actual results

Nothing happens

Code sample

Code sample

return await showCupertinoModalPopup(
    context: context,
    builder: (BuildContext context) => CupertinoActionSheet(
        title: Text('title'),
        actions: <Widget>[
          CupertinoActionSheetAction(
            child: Text('camera'),
            onPressed: () {
            },
          ),
          CupertinoActionSheetAction(
            child: Text('image'),
            onPressed: ()  {
            },
          ),
        ],
        cancelButton: CupertinoActionSheetAction(
          child: Text('cancel'),
          isDefaultAction: true,
          onPressed: () {
            Navigator.pop(context);
          },
        )),
  );

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

P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: cupertinoflutter/packages/flutter/cupertino repositoryframeworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions