nank1ro / flutter-shadcn-ui

shadcn-ui ported in Flutter. Awesome UI components for Flutter, fully customizable.
https://mariuti.com/shadcn-ui
MIT License
657 stars 42 forks source link

Input OTP #58

Open louis-sicko opened 2 months ago

louis-sicko commented 2 months ago

https://ui.shadcn.com/docs/components/input-otp

louis-sicko commented 1 month ago

Just some thoughts:

Maybe options for the divider? -> like setting the divider to 3 on a 6 char long input. Then it would be splitted half. If set to 2 on a 6 char long input there would be 2 dividers

Maybe a setting to allow the input types? -> alphabetic, numbers, both, regex?

Length of Input -> self explaining

(Or the individual approach like in the original shadcn/ui lib)

Thank you for your work on this all!

nank1ro commented 1 month ago

Thanks for the reasoning. I don't think I will work soon to this component. The missing ones are more important and probably more needed. Don't know if you wanna try yourself implementing it, can give suggestions if needed