Flutter_Pinput icon indicating copy to clipboard operation
Flutter_Pinput copied to clipboard

useNativeKeyboard = false is not triggering validation

Open DowsingUK opened this issue 1 year ago • 0 comments

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

DowsingUK avatar Feb 12 '24 16:02 DowsingUK