GeneralTextField constructor

const GeneralTextField({
  1. Key? key,
  2. required TextEditingController controller,
  3. required String labelText,
  4. required TextValidationType textValidationType,
  5. required void onFieldSubmitted(
    1. String
    )?,
  6. void onChanged(
    1. String
    )?,
  7. Color? contentColor,
  8. Color? borderColor,
  9. IconData? prefixIcon,
  10. int? minLines,
  11. int? maxLines = 1,
  12. TextInputType? textInputType,
  13. TextEditingController? previousPasswordController,
  14. FocusNode? focusNode,
  15. FocusNode? nextFocus,
  16. Widget? suffix,
  17. Widget? prefix,
  18. BorderRadius? borderRadius,
})

Implementation

const GeneralTextField({
  super.key,
  required this.controller,
  required this.labelText,
  required this.textValidationType,
  required this.onFieldSubmitted,
  this.onChanged,
  this.contentColor,
  this.borderColor,
  this.prefixIcon,
  this.minLines,
  this.maxLines = 1,
  this.textInputType,
  this.previousPasswordController,
  this.focusNode,
  this.nextFocus,
  this.suffix,
  this.prefix,
  this.borderRadius,
});