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

Question: Why is the GestureDetector used in the example? #308

Closed guplem closed 1 year ago

guplem commented 1 year ago

I am setting up the library, so I am not familiar with it.

I found there is a GestureDetector wrapping the full body of the Scaffold in the example.

However, it doesn't have any apparent functionality since the onTap "does nothing" and the only other parameter is "child" (where the actual body of the example resides).

Am I missing something? Is it only a way to suggest that the focus of the "text flieds" could be granted by catching a tap anywhere on the page? It is confusing...

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.

guplem commented 1 year ago

Just trying to avoid it from being automatically closed... I am still curious...

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.