adar2378 / pin_code_fields

A flutter package which will help you to generate pin code fields with beautiful design and animations. Can be useful for OTP or pin code inputs 🤓🤓
https://pub.dev/packages/pin_code_fields
MIT License
690 stars 336 forks source link

Added ability to pass "onEditingComplete" parameter to PinCodeTextField #291

Closed shliama closed 1 year ago

shliama commented 1 year ago

Added ability to pass onEditingComplete parameter to PinCodeTextField constructor to be able to control automatic keyboard dismiss behavior.

Reason

In my app it's required for the keyboard to stay visible when users click "done/next" action on the keyboard during PIN code flow. At the moment, the keyboard will automatically close.

Here is a link to detailed explanation why onEditingComplete parameter actually helps: https://stackoverflow.com/a/65172533/4903519

This change should not affect any existing code since onEditingComplete parameter is null by default.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

shliama commented 1 year ago

Well that's just sad.

adar2378 commented 1 year ago

A good use case! Thanks.