Skip to content

Add autofocus support to TapCardViewWidget (open keyboard automatically) #8

Description

@parmeetsappinventiv

Hi Tap‑Payments / Card‑Flutter team,

I’d like to request a feature enhancement: the ability to auto‑focus the first input field (card number) in the TapCardViewWidget when it’s displayed, and open the keyboard automatically.

Use case / motivation:

Improves UX: user can start typing card details immediately without needing to tap the form field.

Reduces friction, especially on mobile devices.

Proposal:

Add a bool autofocus parameter to TapCardViewWidget (default: false). So keyboard basically open so user not impose efforts to click on widget.

Optionally, allow passing a FocusNode (e.g., cardNumberFocusNode) so consumers can control focus programmatically.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions