Overview
Pinput is a Flutter package for creating sleek, customizable PIN code, OTP, password, and passcode input fields. It supports iOS and Android SMS autofill for One Time Codes, enhancing user experience during 2FA, two-step verification, or coupon entry. Designed with clean UI and intuitive gestures, it works across all major platforms including Web, macOS, Windows, and Linux. The package offers smooth transitions, validation, and easy integration into authentication flows.
Use cases
- Two-factor authentication
- Coupon or promo code entry
- Security passcode input
- Captcha verification
- OTP login flows
- Password recovery
Key features
- iOS and Android SMS autofill support
- Customizable design and styling
- Cross-platform compatibility
- Auto-focus between fields
- Built-in validation utilities
- Smooth animations
Suitable for
- Authentication screens
- Secure login interfaces
- E-commerce checkout forms
- User onboarding flows
- Mobile app security features
Considerations
- Requires manual handling of OTP submission logic
- Limited built-in error feedback
- May need additional state management for complex workflows
- Not optimized for very long input sequences
- No built-in biometric integration
