ResponsiveCupertinoTextField constructor

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

ResponsiveCupertinoTextField({
  Key? key,
  controller,
  focusNode,
  decoration = _kDefaultRoundedBorderDecoration,
  padding = const EdgeInsets.all(6.0),
  placeholder,
  placeholderStyle = const TextStyle(
    fontWeight: FontWeight.w400,
    color: CupertinoColors.placeholderText,
  ),
  prefix,
  prefixMode = OverlayVisibilityMode.always,
  suffix,
  suffixMode = OverlayVisibilityMode.always,
  clearButtonMode = OverlayVisibilityMode.never,
  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,
  inputFormatters,
  enabled = true,
  cursorWidth = 2.0,
  cursorHeight,
  cursorRadius = const Radius.circular(2.0),
  cursorColor,
  selectionHeightStyle = BoxHeightStyle.tight,
  selectionWidthStyle = BoxWidthStyle.tight,
  keyboardAppearance,
  scrollPadding = const EdgeInsets.all(20.0),
  dragStartBehavior = DragStartBehavior.start,
  enableInteractiveSelection = true,
  selectionControls,
  this.onTap,
  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('padding', padding)
        .set('placeholder', placeholder)
        .set('placeholderStyle', placeholderStyle)
        .set('prefix', prefix)
        .set('prefixMode', prefixMode)
        .set('suffix', suffix)
        .set('suffixMode', suffixMode)
        .set('clearButtonMode', clearButtonMode)
        .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('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('scrollController', scrollController)
        .set('scrollPhysics', scrollPhysics)
        .set('autofillHints', autofillHints)
        .set('clipBehavior', clipBehavior)
        .set('restorationId', restorationId)
        .set('enableIMEPersonalizedLearning', enableIMEPersonalizedLearning);

    }