flutter_smart_otp 1.0.0 copy "flutter_smart_otp: ^1.0.0" to clipboard
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 AutovalidateMode support.
  • Obscure text support with custom obscuring character.
  • Enable/disable and read-only modes.
  • Custom keyboard type and TextInputFormatter support.
  • 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 borderBuilder and decorationBuilder hooks for total visual control.
  • Box width, height, and spacing customization.
  • Autofocus support.
  • Support for externally supplied FocusNode and TextEditingController lists.
  • 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, and onFocusChanged callbacks.
  • SmartOtpFieldState public API exposing clear(), validate(), and setError() for imperative control via a GlobalKey.
2
likes
160
points
34
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A highly customizable, production-ready OTP / PIN input field for Flutter with auto-focus, paste support, validation, RTL/LTR support, and rich styling options.

Repository (GitHub)
View/report issues

Topics

#otp #pin #input #form #widget

License

MIT (license)

Dependencies

characters, flutter

More

Packages that depend on flutter_smart_otp