flutter_otp_widget 1.0.1
flutter_otp_widget: ^1.0.1 copied to clipboard
A highly customizable OTP (One-Time Password) text field widget for Flutter with support for multiple styles, themes, and input types.
Changelog #
1.0.1 #
Improvements #
- Enhanced example app with manual clear functionality and better focus management
1.0.0 #
Initial Release #
Features
- Multiple Field Styles: Box, underline, and circle styles
- Flexible Input Types: Support for numbers, text, and alphanumeric input
- Theming System: Light, dark, and fully customizable themes
- State Management: Error states, disabled states, and focus management
- Secure Input: Password/PIN mode with obscured text
- Keyboard Navigation: Arrow keys and backspace navigation between fields
- Auto Focus: Optional automatic focus on first field
- Customizable Layout: Adjustable field sizes, spacing, and center gaps
- Text Formatting: Text capitalization options
- Cursor Customization: Control cursor appearance (color, size, visibility)
- Callbacks:
onChangeandonCompletedevent handlers
Components
OTPTextField: Main widget for OTP inputOTPTheme: Theme configuration classOTPFieldStyle: Enum for field visual stylesOTPInputType: Enum for input type control
