Tkko / Flutter_Pinput

Flutter package to create Pin code input text field with every pixel customization possibility 🎨 with beautiful animations, iOS autofill, Android autofill
https://pub.dev/packages/pinput
MIT License
775 stars 179 forks source link

useNativeKeyboard = false is not triggering validation #167

Open DowsingUK opened 9 months ago

DowsingUK commented 9 months ago

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