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