ResponsiveTextFormField constructor

ResponsiveTextFormField({
  1. Key? key,
  2. dynamic controller,
  3. String? initialValue,
  4. FocusNode? focusNode,
  5. InputDecoration? decoration = const InputDecoration(),
  6. TextInputType? keyboardType,
  7. TextCapitalization textCapitalization = TextCapitalization.none,
  8. TextInputAction? textInputAction,
  9. TextStyle? style,
  10. StrutStyle? strutStyle,
  11. TextDirection? textDirection,
  12. TextAlign textAlign = TextAlign.start,
  13. TextAlignVertical? textAlignVertical,
  14. bool autofocus = false,
  15. bool readOnly = false,
  16. ToolbarOptions? toolbarOptions,
  17. bool? showCursor,
  18. String obscuringCharacter = '•',
  19. bool obscureText = false,
  20. bool autocorrect = true,
  21. SmartDashesType? smartDashesType,
  22. SmartQuotesType? smartQuotesType,
  23. bool enableSuggestions = true,
  24. MaxLengthEnforcement? maxLengthEnforcement,
  25. int? maxLines = 1,
  26. int? minLines,
  27. bool expands = false,
  28. int? maxLength,
  29. ValueChanged<String>? onChanged,
  30. GestureTapCallback? onTap,
  31. VoidCallback? onEditingComplete,
  32. ValueChanged<String>? onFieldSubmitted,
  33. FormFieldSetter<String>? onSaved,
  34. FormFieldValidator<String>? validator,
  35. List<TextInputFormatter>? inputFormatters,
  36. bool? enabled,
  37. double cursorWidth = 2.0,
  38. double? cursorHeight,
  39. Radius? cursorRadius,
  40. Color? cursorColor,
  41. Brightness? keyboardAppearance,
  42. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  43. bool enableInteractiveSelection = true,
  44. TextSelectionControls? selectionControls,
  45. InputCounterWidgetBuilder? buildCounter,
  46. ScrollPhysics? scrollPhysics,
  47. Iterable<String>? autofillHints,
  48. AutovalidateMode? autovalidateMode,
  49. ScrollController? scrollController,
  50. String? restorationId,
  51. bool enableIMEPersonalizedLearning = true,
  52. double scaleWatch = 0.8,
  53. double scaleSmallPhone = 1.0,
  54. double scaleMediumPhone = 1.0,
  55. double scaleLargePhone = 1.5,
  56. double scaleSmallTablet = 2.0,
  57. double scaleMediumTablet = 2.5,
  58. double scaleLargeTablet = 3.0,
  59. double scaleMediumDesktop = 4.0,
  60. double scaleLargeDesktop = 5.6,
  61. double scaleTelevision = 7.2,
})

Constructs a responsive container, that accepts a child Widget.

@param scaleWatch The responsive scale for watch devices (default: 0.8) @param scaleSmallPhone The responsive scale for small phone devices (default: 1.0) @param scaleMediumPhone The responsive scale for medium phone devices (default: 1.0) @param scaleLargePhone The responsive scale for large phone devices (default: 1.5) @param scaleSmallTablet The responsive scale for small tablet devices (default: 2.0) @param scaleMediumTablet The responsive scale for medium tablet devices (default: 2.5) @param scaleLargeTablet The responsive scale for large tablet devices (default: 3.0) @param scaleMediumDesktop The responsive scale for medium desktop devices (default: 4.0) @param scaleLargeDesktop The responsive scale for large desktop devices (default: 5.6) @param scaleTelevision The responsive scale for TV devices (default: 7.2)

Implementation

ResponsiveTextFormField({Key? key,
  controller,
  String? initialValue,
  FocusNode? focusNode,
  InputDecoration? decoration = const InputDecoration(),
  TextInputType? keyboardType,
  TextCapitalization textCapitalization = TextCapitalization.none,
  TextInputAction? textInputAction,
  TextStyle? style,
  StrutStyle? strutStyle,
  TextDirection? textDirection,
  TextAlign textAlign = TextAlign.start,
  TextAlignVertical? textAlignVertical,
  bool autofocus = false,
  bool readOnly = false,
  ToolbarOptions? toolbarOptions,
  bool? showCursor,
  String obscuringCharacter = '•',
  bool obscureText = false,
  bool autocorrect = true,
  SmartDashesType? smartDashesType,
  SmartQuotesType? smartQuotesType,
  bool enableSuggestions = true,
  MaxLengthEnforcement? maxLengthEnforcement,
  int? maxLines = 1,
  int? minLines,
  bool expands = false,
  int? maxLength,
  this.onChanged,
  this.onTap,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.onSaved,
  FormFieldValidator<String>? validator,
  List<TextInputFormatter>? inputFormatters,
  bool? enabled,
  double cursorWidth = 2.0,
  double? cursorHeight,
  Radius? cursorRadius,
  Color? cursorColor,
  Brightness? keyboardAppearance,
  EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  bool enableInteractiveSelection = true,
  TextSelectionControls? selectionControls,
  InputCounterWidgetBuilder? buildCounter,
  ScrollPhysics? scrollPhysics,
  Iterable<String>? autofillHints,
  AutovalidateMode? autovalidateMode,
  ScrollController? scrollController,
  String? restorationId,
  bool enableIMEPersonalizedLearning = true,
  double scaleWatch = 0.8,
  double scaleSmallPhone = 1.0,
  double scaleMediumPhone = 1.0,
  double scaleLargePhone = 1.5,
  double scaleSmallTablet = 2.0,
  double scaleMediumTablet = 2.5,
  double scaleLargeTablet = 3.0,
  double scaleMediumDesktop = 4.0,
  double scaleLargeDesktop = 5.6,
  double scaleTelevision = 7.2,
}) : super(
    scaleWatch: scaleWatch,
    scaleSmallPhone: scaleSmallPhone,
    scaleMediumPhone: scaleMediumPhone,
    scaleLargePhone: scaleLargePhone,
    scaleSmallTablet: scaleSmallTablet,
    scaleMediumTablet: scaleMediumTablet,
    scaleLargeTablet: scaleLargeTablet,
    scaleMediumDesktop: scaleMediumDesktop,
    scaleLargeDesktop: scaleLargeDesktop,
    scaleTelevision: scaleTelevision
  ) {

    set('key', key)
    .set('controller', controller)
    .set('initialValue', initialValue)
    .set('focusNode', focusNode)
    .set('decoration', decoration)
    .set('keyboardType', keyboardType)
    .set('textCapitalization', textCapitalization)
    .set('textInputAction', textInputAction)
    .set('style', style)
    .set('strutStyle', strutStyle)
    .set('textDirection', textDirection)
    .set('textAlign', textAlign)
    .set('textAlignVertical', textAlignVertical)
    .set('autofocus', autofocus)
    .set('readOnly', readOnly)
    .set('toolbarOptions', toolbarOptions)
    .set('showCursor', showCursor)
    .set('obscuringCharacter', obscuringCharacter)
    .set('obscureText', obscureText)
    .set('autocorrect', autocorrect)
    .set('smartDashesType', smartDashesType)
    .set('smartQuotesType', smartQuotesType)
    .set('enableSuggestions', enableSuggestions)
    .set('maxLengthEnforcement', maxLengthEnforcement)
    .set('maxLines', maxLines)
    .set('minLines', minLines)
    .set('expands', expands)
    .set('maxLength', maxLength)
    .set('validator', validator)
    .set('inputFormatters', inputFormatters)
    .set('enabled', enabled)
    .set('cursorWidth', cursorWidth)
    .set('cursorHeight', cursorHeight)
    .set('cursorRadius', cursorRadius)
    .set('cursorColor', cursorColor)
    .set('keyboardAppearance', keyboardAppearance)
    .set('scrollPadding', scrollPadding)
    .set('enableInteractiveSelection', enableInteractiveSelection)
    .set('selectionControls', selectionControls)
    .set('buildCounter', buildCounter)
    .set('scrollPhysics', scrollPhysics)
    .set('autofillHints', autofillHints)
    .set('autovalidateMode', autovalidateMode)
    .set('scrollController', scrollController)
    .set('restorationId', restorationId)
    .set('enableIMEPersonalizedLearning', enableIMEPersonalizedLearning);

}