flutter_smart_otp 1.0.0
flutter_smart_otp: ^1.0.0 copied to clipboard
A highly customizable, production-ready OTP / PIN input field for Flutter with auto-focus, paste support, validation, RTL/LTR support, and rich styling options.
1.0.0 #
- Initial stable release.
- Customizable OTP length.
- Auto-focus to next field on input, auto-focus to previous field on backspace.
- Full OTP paste support across all boxes, including SMS-autofill style input.
- Built-in and custom validation with
AutovalidateModesupport. - Obscure text support with custom obscuring character.
- Enable/disable and read-only modes.
- Custom keyboard type and
TextInputFormattersupport. - Full cursor customization (color, width, height, radius, visibility).
- Custom text style, border color, focused border color, error border color, disabled border color, border radius, border width.
- Advanced
borderBuilderanddecorationBuilderhooks for total visual control. - Box width, height, and spacing customization.
- Autofocus support.
- Support for externally supplied
FocusNodeandTextEditingControllerlists. - Right-to-left (RTL) and left-to-right (LTR) layout support.
- Responsive layout that adapts to available width.
- Leak-free state management with correct disposal of internally-created controllers and focus nodes only.
- Accessibility support via
Semantics. onChanged,onCompleted, andonFocusChangedcallbacks.SmartOtpFieldStatepublic API exposingclear(),validate(), andsetError()for imperative control via aGlobalKey.