Hey there! Is there any public solutions for secur...
# compose
a
Hey there! Is there any public solutions for secure pin (4-5-6 digits) input widget with Material3 on Android (KMP in general)? Some like this on video? Somehow I am facing challenges with handling focus requesters per 1 digit input field and implementing "Delete Last Digit" functionality. It would be nice to get some inspiration from somewhere.
s
Good morning! Lumo UI has this OTPTextField class which may help: https://www.lumoui.com/otp-textfield
👀 1
a
Looks nice, indeed. Unfortunately I have restrictions on using external dependencies. Thus I am looking for the source code for inspiration.
s
Lumo is an open-source library which encourages you to pick and choose its components (and their source code) into your own project. Whether you choose to take the entire component or learn from it, the source is available here: https://github.com/nomanr/lumo-ui/blob/main/lumo-ui/components-lab/src/commonMain/kotlin/com/nomanr/lumo/ui/components/otptextfield/OTPTextField.kt
✅ 1
🙌 1
a
Lovely, that should be it. Thanks!