ResponsiveTextField constructor

ResponsiveTextField({
  1. Key? key,
  2. dynamic controller,
  3. dynamic focusNode,
  4. dynamic decoration = const InputDecoration(),
  5. TextInputType? keyboardType,
  6. dynamic textInputAction,
  7. dynamic textCapitalization = TextCapitalization.none,
  8. dynamic style,
  9. dynamic strutStyle,
  10. dynamic textAlign = TextAlign.start,
  11. dynamic textAlignVertical,
  12. dynamic textDirection,
  13. dynamic readOnly = false,
  14. ToolbarOptions? toolbarOptions,
  15. dynamic showCursor,
  16. dynamic autofocus = false,
  17. dynamic obscuringCharacter = '•',
  18. dynamic obscureText = false,
  19. dynamic autocorrect = true,
  20. SmartDashesType? smartDashesType,
  21. SmartQuotesType? smartQuotesType,
  22. dynamic enableSuggestions = true,
  23. dynamic maxLines = 1,
  24. dynamic minLines,
  25. dynamic expands = false,
  26. dynamic maxLength,
  27. dynamic maxLengthEnforcement,
  28. dynamic onChanged,
  29. dynamic onEditingComplete,
  30. dynamic onSubmitted,
  31. dynamic onAppPrivateCommand,
  32. dynamic inputFormatters,
  33. dynamic enabled,
  34. dynamic cursorWidth = 2.0,
  35. dynamic cursorHeight,
  36. dynamic cursorRadius,
  37. dynamic cursorColor,
  38. dynamic selectionHeightStyle = BoxHeightStyle.tight,
  39. dynamic selectionWidthStyle = BoxWidthStyle.tight,
  40. dynamic keyboardAppearance,
  41. dynamic scrollPadding = const EdgeInsets.all(20.0),
  42. dynamic dragStartBehavior = DragStartBehavior.start,
  43. dynamic enableInteractiveSelection = true,
  44. dynamic selectionControls,
  45. GestureTapCallback? onTap,
  46. dynamic mouseCursor,
  47. dynamic buildCounter,
  48. dynamic scrollController,
  49. dynamic scrollPhysics,
  50. dynamic autofillHints = const <String>[],
  51. dynamic clipBehavior = Clip.hardEdge,
  52. dynamic restorationId,
  53. dynamic enableIMEPersonalizedLearning = true,
  54. double scaleWatch = 0.8,
  55. double scaleSmallPhone = 1.0,
  56. double scaleMediumPhone = 1.0,
  57. double scaleLargePhone = 1.5,
  58. double scaleSmallTablet = 2.0,
  59. double scaleMediumTablet = 2.5,
  60. double scaleLargeTablet = 3.0,
  61. double scaleMediumDesktop = 4.0,
  62. double scaleLargeDesktop = 5.6,
  63. 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

ResponsiveTextField({
  Key? key,
  controller,
  focusNode,
  decoration = const InputDecoration(),
  TextInputType? keyboardType,
  textInputAction,
  textCapitalization = TextCapitalization.none,
  style,
  strutStyle,
  textAlign = TextAlign.start,
  textAlignVertical,
  textDirection,
  readOnly = false,
  ToolbarOptions? toolbarOptions,
  showCursor,
  autofocus = false,
  obscuringCharacter = '•',
  obscureText = false,
  autocorrect = true,
  SmartDashesType? smartDashesType,
  SmartQuotesType? smartQuotesType,
  enableSuggestions = true,
  maxLines = 1,
  minLines,
  expands = false,
  maxLength,
  maxLengthEnforcement,
  onChanged,
  onEditingComplete,
  onSubmitted,
  onAppPrivateCommand,
  inputFormatters,
  enabled,
  cursorWidth = 2.0,
  cursorHeight,
  cursorRadius,
  cursorColor,
  selectionHeightStyle = BoxHeightStyle.tight,
  selectionWidthStyle = BoxWidthStyle.tight,
  keyboardAppearance,
  scrollPadding = const EdgeInsets.all(20.0),
  dragStartBehavior = DragStartBehavior.start,
  enableInteractiveSelection = true,
  selectionControls,
  this.onTap,
  mouseCursor,
  buildCounter,
  scrollController,
  scrollPhysics,
  autofillHints = const <String>[],
  clipBehavior = Clip.hardEdge,
  restorationId,
  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('focusNode', focusNode)
        .set('decoration', decoration)
        .set('keyboardType', keyboardType)
        .set('textInputAction', textInputAction)
        .set('textCapitalization', textCapitalization)
        .set('style', style)
        .set('strutStyle', strutStyle)
        .set('textAlign', textAlign)
        .set('textAlignVertical', textAlignVertical)
        .set('textDirection', textDirection)
        .set('readOnly', readOnly)
        .set('toolbarOptions', toolbarOptions)
        .set('showCursor', showCursor)
        .set('autofocus', autofocus)
        .set('obscuringCharacter', obscuringCharacter)
        .set('obscureText', obscureText)
        .set('autocorrect', autocorrect)
        .set('smartDashesType', smartDashesType)
        .set('smartQuotesType', smartQuotesType)
        .set('enableSuggestions', enableSuggestions)
        .set('maxLines', maxLines)
        .set('minLines', minLines)
        .set('expands', expands)
        .set('maxLength', maxLength)
        .set('maxLengthEnforcement', maxLengthEnforcement)
        .set('onChanged', onChanged)
        .set('onEditingComplete', onEditingComplete)
        .set('onSubmitted', onSubmitted)
        .set('onAppPrivateCommand', onAppPrivateCommand)
        .set('inputFormatters', inputFormatters)
        .set('enabled', enabled)
        .set('cursorWidth', cursorWidth)
        .set('cursorHeight', cursorHeight)
        .set('cursorRadius', cursorRadius)
        .set('cursorColor', cursorColor)
        .set('selectionHeightStyle', selectionHeightStyle)
        .set('selectionWidthStyle', selectionWidthStyle)
        .set('keyboardAppearance', keyboardAppearance)
        .set('scrollPadding', scrollPadding)
        .set('dragStartBehavior', dragStartBehavior)
        .set('enableInteractiveSelection', enableInteractiveSelection)
        .set('selectionControls', selectionControls)
        .set('mouseCursor', mouseCursor)
        .set('buildCounter', buildCounter)
        .set('scrollController', scrollController)
        .set('scrollPhysics', scrollPhysics)
        .set('autofillHints', autofillHints)
        .set('clipBehavior', clipBehavior)
        .set('restorationId', restorationId)
        .set('enableIMEPersonalizedLearning', enableIMEPersonalizedLearning);

    }