InputField.emailAddress constructor

InputField.emailAddress({
  1. Key? key,
  2. required TextEditingController controller,
  3. String labelText = "Email Address",
  4. bool obscureText = false,
  5. bool autoFocus = true,
  6. TextInputType keyboardType = TextInputType.emailAddress,
  7. TextAlign? textAlign,
  8. bool validateOnFocusChange = false,
  9. int maxLines = 1,
  10. dynamic handleValidationError(
    1. FormValidationResult handleError
    )?,
  11. int? minLines,
  12. bool enableSuggestions = true,
  13. String? hintText,
  14. TextStyle? hintStyle,
  15. FocusNode? focusNode,
  16. FormValidator? formValidator,
  17. String? dummyData,
  18. dynamic onChanged(
    1. String value
    )?,
  19. TextStyle? style,
  20. StrutStyle? strutStyle,
  21. TextInputAction? textInputAction,
  22. bool readOnly = false,
  23. bool? showCursor,
  24. int? maxLength,
  25. bool? enabled,
  26. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  27. double? cursorHeight,
  28. Radius? cursorRadius,
  29. Color? cursorColor,
  30. GestureTapCallback? onTap,
  31. TapRegionCallback? onTapOutside,
  32. MouseCursor? mouseCursor,
  33. TextCapitalization textCapitalization = TextCapitalization.none,
  34. MaxLengthEnforcement? maxLengthEnforcement,
  35. double cursorWidth = 2.0,
  36. AppPrivateCommandCallback? onAppPrivateCommand,
  37. List<TextInputFormatter>? inputFormatters,
  38. bool expands = false,
  39. TextAlignVertical? textAlignVertical,
  40. TextDirection? textDirection,
  41. String obscuringCharacter = '•',
  42. bool autocorrect = true,
  43. SmartDashesType? smartDashesType,
  44. SmartQuotesType? smartQuotesType,
  45. bool? passwordViewable,
  46. InputDecoration? decoration,
  47. VoidCallback? onEditingComplete,
  48. Brightness? keyboardAppearance,
  49. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  50. TextSelectionControls? selectionControls,
  51. ValueChanged<String>? onSubmitted,
  52. ScrollController? scrollController,
  53. ScrollPhysics? scrollPhysics,
  54. Iterable<String>? autofillHints = const <String>[],
  55. Clip clipBehavior = Clip.hardEdge,
  56. Widget? prefixIcon,
  57. Color? backgroundColor,
  58. BorderRadius? borderRadius,
  59. InputBorder? border,
  60. InputBorder? focusedBorder,
  61. InputBorder? enabledBorder,
  62. EdgeInsetsGeometry? contentPadding,
  63. TextStyle? labelStyle,
  64. bool? passwordVisible,
  65. Widget? header,
  66. Widget? footer,
  67. bool? clearable,
  68. Widget? clearIcon,
  69. String? mask,
  70. String? maskMatch,
  71. bool? maskedReturnValue,
  72. DecoratorTextField? decorator,
  73. String? stateName,
})

Email Address Text Field - email keyboard with autofocus

Implementation

InputField.emailAddress({
  Key? key,
  required TextEditingController controller,
  String labelText = "Email Address",
  bool obscureText = false,
  bool autoFocus = true,
  TextInputType keyboardType = TextInputType.emailAddress,
  TextAlign? textAlign,
  bool validateOnFocusChange = false,
  int maxLines = 1,
  Function(FormValidationResult handleError)? handleValidationError,
  int? minLines,
  bool enableSuggestions = true,
  String? hintText,
  TextStyle? hintStyle,
  FocusNode? focusNode,
  FormValidator? formValidator,
  String? dummyData,
  Function(String value)? onChanged,
  TextStyle? style,
  StrutStyle? strutStyle,
  TextInputAction? textInputAction,
  bool readOnly = false,
  bool? showCursor,
  int? maxLength,
  bool? enabled,
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  double? cursorHeight,
  Radius? cursorRadius,
  Color? cursorColor,
  GestureTapCallback? onTap,
  TapRegionCallback? onTapOutside,
  MouseCursor? mouseCursor,
  TextCapitalization textCapitalization = TextCapitalization.none,
  MaxLengthEnforcement? maxLengthEnforcement,
  double cursorWidth = 2.0,
  AppPrivateCommandCallback? onAppPrivateCommand,
  List<TextInputFormatter>? inputFormatters,
  bool expands = false,
  TextAlignVertical? textAlignVertical,
  TextDirection? textDirection,
  String obscuringCharacter = '•',
  bool autocorrect = true,
  SmartDashesType? smartDashesType,
  SmartQuotesType? smartQuotesType,
  bool? passwordViewable,
  InputDecoration? decoration,
  VoidCallback? onEditingComplete,
  Brightness? keyboardAppearance,
  EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  TextSelectionControls? selectionControls,
  ValueChanged<String>? onSubmitted,
  ScrollController? scrollController,
  ScrollPhysics? scrollPhysics,
  Iterable<String>? autofillHints = const <String>[],
  Clip clipBehavior = Clip.hardEdge,
  Widget? prefixIcon,
  Color? backgroundColor,
  BorderRadius? borderRadius,
  InputBorder? border,
  InputBorder? focusedBorder,
  InputBorder? enabledBorder,
  EdgeInsetsGeometry? contentPadding,
  TextStyle? labelStyle,
  bool? passwordVisible,
  Widget? header,
  Widget? footer,
  bool? clearable,
  Widget? clearIcon,
  String? mask,
  String? maskMatch,
  bool? maskedReturnValue,
  DecoratorTextField? decorator,
  String? stateName,
}) : this(
       key: key,
       controller: controller,
       labelText: labelText,
       obscureText: obscureText,
       autoFocus: autoFocus,
       keyboardType: keyboardType,
       textAlign: textAlign,
       validateOnFocusChange: validateOnFocusChange,
       maxLines: maxLines,
       handleValidationError: handleValidationError,
       minLines: minLines,
       enableSuggestions: enableSuggestions,
       hintText: hintText,
       hintStyle: hintStyle,
       focusNode: focusNode,
       formValidator: formValidator,
       dummyData: dummyData,
       onChanged: onChanged,
       style: style,
       strutStyle: strutStyle,
       textInputAction: textInputAction,
       readOnly: readOnly,
       showCursor: showCursor,
       maxLength: maxLength,
       enabled: enabled,
       dragStartBehavior: dragStartBehavior,
       cursorHeight: cursorHeight,
       cursorRadius: cursorRadius,
       cursorColor: cursorColor,
       onTap: onTap,
       onTapOutside: onTapOutside,
       mouseCursor: mouseCursor,
       textCapitalization: textCapitalization,
       maxLengthEnforcement: maxLengthEnforcement,
       cursorWidth: cursorWidth,
       onAppPrivateCommand: onAppPrivateCommand,
       inputFormatters: inputFormatters,
       expands: expands,
       textAlignVertical: textAlignVertical,
       textDirection: textDirection,
       obscuringCharacter: obscuringCharacter,
       autocorrect: autocorrect,
       smartDashesType: smartDashesType,
       smartQuotesType: smartQuotesType,
       passwordViewable: passwordViewable,
       decoration: decoration,
       onEditingComplete: onEditingComplete,
       keyboardAppearance: keyboardAppearance,
       scrollPadding: scrollPadding,
       selectionControls: selectionControls,
       onSubmitted: onSubmitted,
       scrollController: scrollController,
       scrollPhysics: scrollPhysics,
       autofillHints: autofillHints,
       clipBehavior: clipBehavior,
       prefixIcon: prefixIcon,
       backgroundColor: backgroundColor,
       borderRadius: borderRadius,
       border: border,
       focusedBorder: focusedBorder,
       enabledBorder: enabledBorder,
       contentPadding: contentPadding,
       labelStyle: labelStyle,
       passwordVisible: passwordVisible,
       header: header,
       footer: footer,
       clearable: clearable,
       clearIcon: clearIcon,
       mask: mask,
       maskMatch: maskMatch,
       maskedReturnValue: maskedReturnValue,
       decorator: decorator,
       stateName: stateName,
     );