pinput library

Flutter package to create easily customizable Pin code input field, that your designers can't even draw in Figma 🤭

Classes

Credential
A credential that can be used to authenticate a user, with additional user information used to distinguish this credential from other available credentials. Credentials can be constructed using Credential.Builder. This is typically required when a credential is to be saved using SmartAuth.saveCredential for future retrieval after a new account is created, or the user changes their password. More about Credential https://developers.google.com/android/reference/com/google/android/gms/auth/api/credentials/Credential?hl=en
Methods
Pinput
Flutter package to create easily customizable Pin code input field, that your designers can't even draw in Figma 🤭
PinputConstants
The constant values for Pinput
PinTheme
Theme of the individual pin items for following states: default, focused pin, submitted pin, following pin, disabled pin and error pin
SmartAuth
Flutter package for listening SMS code on Android, suggesting phone number, email, saving a credential.
SmsCodeResult
The returned value from SmartAuth.getSmsCode Contains the whole sms and the OTP code itself

Enums

AndroidSmsAutofillMethod
The method that is used to get the sms code on Android
HapticFeedbackType
The vibration type when user types
PinAnimationType
The animation type if Pin item
PinputAutovalidateMode
The mode which determines the Pinput validation method

Extensions

PinputControllerExt on TextEditingController
Helper methods for Pinput to easily set, delete, append the value programmatically

Typedefs

JustIndexedWidgetBuilder = Widget Function(int index)
Signature for a function that creates a widget for a given index, e.g., in a list.
PinputErrorBuilder = Widget Function(String? errorText, String pin)
Error widget builder of Pinput