ApzInputField constructor

const ApzInputField({
  1. Key? key,
  2. required String label,
  3. required TextEditingController controller,
  4. String? hintText,
  5. bool obscureText = false,
  6. TextInputType keyboardType = TextInputType.text,
  7. String? validator(
    1. String?
    )?,
  8. Widget? suffixIcon,
  9. Widget? prefixIcon,
  10. bool enabled = true,
  11. bool isEmailFld = false,
  12. bool isAmount = false,
  13. bool allowAllCaps = false,
  14. bool isMandatory = false,
  15. bool onlyNumbers = false,
  16. void onChanged(
    1. String
    )?,
  17. void onFieldSubmitted(
    1. String
    )?,
  18. void onTap()?,
  19. void onEditingComplete()?,
  20. int? maxLength,
  21. int maxLines = 1,
  22. 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,
});