LayoutTextField constructor

const LayoutTextField({
  1. Key? key,
  2. required GlobalKey<FormState> formKey,
  3. required TextEditingController controller,
  4. required String labelText,
  5. required TextValidationType textValidationType,
  6. required void onFieldSubmitted(
    1. String
    )?,
  7. void onChanged(
    1. String
    )?,
  8. Color? contentColor,
  9. Color? borderColor,
  10. int? minLines,
  11. IconData? prefixIcon,
  12. int? maxLines = 1,
  13. TextInputType? textInputType,
  14. TextEditingController? previousPasswordController,
  15. FocusNode? focusNode,
  16. FocusNode? nextFocus,
  17. Widget? suffix,
  18. Widget? prefix,
  19. Widget? textFieldPrefix,
  20. Widget? textFieldSuffix,
  21. double widthPadding = 0,
  22. BorderRadius? borderRadius,
})

Implementation

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