AppzInputField constructor

const AppzInputField({
  1. Key? key,
  2. required String label,
  3. String? hintText,
  4. TextEditingController? controller,
  5. AppzFieldType fieldType = AppzFieldType.defaultType,
  6. AppzFieldState initialFieldState = AppzFieldState.defaultState,
  7. String? initialValue,
  8. FocusNode? focusNode,
  9. ValueChanged<String>? onChanged,
  10. VoidCallback? onTap,
  11. ValueChanged<String>? onSubmitted,
  12. FormFieldValidator<String>? validator,
  13. bool obscureText = false,
  14. TextInputAction? textInputAction,
  15. int? maxLength,
})

Implementation

const AppzInputField({
  super.key,
  required this.label,
  this.hintText,
  this.controller,
  this.fieldType = AppzFieldType.defaultType,
  this.initialFieldState = AppzFieldState.defaultState,
  this.initialValue,
  this.focusNode,
  this.onChanged,
  this.onTap,
  this.onSubmitted,
  this.validator,
  this.obscureText = false,
  this.textInputAction,
  this.maxLength,
  // this.readOnly = false,
});