ZeroTextFieldMultiline.underline constructor

ZeroTextFieldMultiline.underline({
  1. Key? key,
  2. String? hintText,
  3. String? labelText,
  4. ZeroTextfieldSize? textfielSizeType,
  5. TextEditingController? controller,
  6. FocusNode? focusNode,
  7. TextInputType? inputType,
  8. dynamic onChanged(
    1. String
    )?,
  9. dynamic onEditingComplete()?,
  10. String? validator(
    1. String?
    )?,
  11. AutovalidateMode? autovalidateMode,
  12. Widget? suffix,
  13. InputDecoration? decoration,
  14. String? helperText,
  15. String? errorText,
  16. bool? enabled,
  17. int? maxLines,
  18. int? minLines,
})

This already uses UnderlineInputBorder under the hood with fillColor set as per defined in the standard ZeroOne design guideline.

Implementation

factory ZeroTextFieldMultiline.underline({
  Key? key,
  String? hintText,
  String? labelText,
  ZeroTextfieldSize? textfielSizeType,
  TextEditingController? controller,
  FocusNode? focusNode,
  TextInputType? inputType,
  Function(String)? onChanged,
  Function()? onEditingComplete,
  String? Function(String?)? validator,
  AutovalidateMode? autovalidateMode,
  Widget? suffix,
  InputDecoration? decoration,
  String? helperText,
  String? errorText,
  bool? enabled,
  int? maxLines,
  int? minLines,
}) =>
    ZeroTextFieldMultiline(
      key: key,
      labelText: labelText,
      hintText: hintText,
      controller: controller,
      focusNode: focusNode,
      onChanged: onChanged,
      onEditingComplete: onEditingComplete,
      validator: validator,
      autovalidateMode: autovalidateMode,
      inputDecorationType: InputDecorationType.underline,
      suffix: suffix,
      decoration: decoration,
      helperText: helperText,
      errorText: errorText,
      enabled: enabled,
      minLines: minLines,
      maxLines: maxLines,
    );