Overview
A Flutter package for creating a clean, customizable verification code input field, ideal for entering or pasting OTP codes from emails or SMS. It supports automatic focus management between fields, paste detection, and smooth user experience across devices. Designed with simplicity and usability in mind, it integrates seamlessly into authentication flows requiring one-time passwords.
Use cases
- OTP entry during login
- Two-factor authentication
- Account verification via email/SMS
- Passwordless login
- Form validation for 6-digit codes
- Mobile app onboarding
Key features
- Auto-focus between code fields
- Paste detection from clipboard
- Customizable styling
- Responsive design for all screen sizes
- Supports both Android and iOS
- Easy integration with form controllers
Suitable for
- Developers building authentication flows
- Apps requiring OTP input
- UX-focused mobile applications
- Projects needing minimal setup for code fields
- Teams prioritizing accessibility and usability
Considerations
- Requires manual handling of validation logic
- Limited to single-line numeric input
- No built-in support for dynamic field count
- May need additional styling for non-default themes
- Not designed for multi-step verification workflows
