Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useNativeKeyboard = false is not triggering validation #167

Open
DowsingUK opened this issue Feb 12, 2024 · 0 comments
Open

useNativeKeyboard = false is not triggering validation #167

DowsingUK opened this issue Feb 12, 2024 · 0 comments
Assignees

Comments

@DowsingUK
Copy link

Describe the bug
useNativeKeyboard = false is not triggering validation

Code

Form
(
  key: _con.formKey,
  child: Column(
    children:
    [
        Pinput(
          useNativeKeyboard: false,
          validator: (value) {
             return value == '2222' ? null : 'Pin is incorrect';
          }
        ),
        TextButton(
          onPressed: ()
          {
            _con.formKey.currentState!.validate();
            debugPrint('validate!');
          },
          child: const Text('Validate'),
        ),
    ]
  )
)

Pinput version: 3.0.1 - 4.0.0

Smartphone:
iPhone, iPad, Android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants