inputs library
Formz inputs con validaciones reutilizables entre las apps Flutter de Superlikers (email, password, teléfono, OTP, etc). Cada input expone sus reglas (largo mínimo/máximo, requisitos de password, patrón, etc) como parámetros opcionales en el constructor para poder ajustarlas por app sin tener que tocar la librería.
Se exporta por separado de superlikers_core.dart para que quien solo
necesite la capa de datos no cargue con la dependencia de formz.
Classes
- ConfirmPassword
- CountryCode
- IdUser
- Numeric ID input (e.g. employee/participant id). Defaults to a maximum of 7 digits; pass maxLength to match a different ID scheme.
- NumberDocument
- OtpCode
- OTP code input. Defaults to 6 digits, matching the most common SMS/email verification code length; pass length to support other lengths.
- Password
- Password validated against a configurable set of rules. Every rule is opt-in via the constructor and defaults match the previous fixed behaviour (min. 5 chars, at least one uppercase and one special char).
- PhoneNumber
- RequiredText
- Generic non-empty text input with optional length bounds.
- TermsAndConditions
- Username