ApzInputField constructor
const
ApzInputField({
- Key? key,
- required String label,
- required TextEditingController controller,
- String? hintText,
- bool obscureText = false,
- TextInputType keyboardType = TextInputType.text,
- String? validator()?,
- Widget? suffixIcon,
- Widget? prefixIcon,
- bool enabled = true,
- bool isEmailFld = false,
- bool isAmount = false,
- bool allowAllCaps = false,
- bool isMandatory = false,
- bool onlyNumbers = false,
- void onChanged()?,
- void onFieldSubmitted()?,
- void onTap()?,
- void onEditingComplete()?,
- int? maxLength,
- int maxLines = 1,
- ApzFieldAppearance appearance = ApzFieldAppearance.primary,
Implementation
const ApzInputField({
super.key,
required this.label,
required this.controller,
this.hintText,
this.obscureText = false,
this.keyboardType = TextInputType.text,
this.validator,
this.suffixIcon,
this.prefixIcon,
this.enabled = true,
this.isEmailFld = false,
this.isAmount = false,
this.allowAllCaps = false,
this.isMandatory = false,
this.onlyNumbers = false,
this.onChanged,
this.onFieldSubmitted,
this.onTap,
this.onEditingComplete,
this.maxLength,
this.maxLines = 1,
this.appearance = ApzFieldAppearance.primary,
});