BaseTextField class
use CupertinoTextField by cupertino *** use cupertino = { forceUseMaterial: true } force use TextField on cuperitno. use TextField by material *** use material = { forceUseCupertino: true } force use CupertinoTextField on material.
CupertinoTextField: 2021.04.03 TextField: 2021.04.03 modify 2021.06.25 by flutter 2.2.2
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- BaseStatelessWidget
- BaseTextField
Constructors
-
BaseTextField({Key? key, TextEditingController? controller, FocusNode? focusNode, TextInputType? keyboardType, TextInputAction? textInputAction, TextCapitalization textCapitalization = TextCapitalization.none, TextStyle? style, StrutStyle? strutStyle, TextAlign textAlign = TextAlign.start, TextAlignVertical? textAlignVertical, bool readOnly = false, bool? showCursor, ToolbarOptions? toolbarOptions, bool autofocus = false, String obscuringCharacter = '•', bool obscureText = false, bool autocorrect = true, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, bool enableSuggestions = true, int maxLines = 1, int? minLines, bool expands = false, int? maxLength, ValueChanged<
String> ? onChanged, VoidCallback? onEditingComplete, ValueChanged<String> ? onSubmitted, List<TextInputFormatter> ? inputFormatters, bool? enabled, double cursorWidth = 2.0, double? cursorHeight, Radius cursorRadius = const Radius.circular(2.0), Color? cursorColor, BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight, BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight, Brightness? keyboardAppearance, EdgeInsets scrollPadding = const EdgeInsets.all(20.0), DragStartBehavior dragStartBehavior = DragStartBehavior.start, bool enableInteractiveSelection = true, ScrollController? scrollController, ScrollPhysics? scrollPhysics, Iterable<String> ? autofillHints, String? restorationId, MaxLengthEnforcement? maxLengthEnforcement, GestureTapCallback? onTap, BoxDecoration cupertinoDecoration = _kDefaultRoundedBorderDecoration, EdgeInsetsGeometry padding = const EdgeInsets.all(6.0), String? placeholder, TextStyle placeholderStyle = const TextStyle(fontWeight: FontWeight.w400, color: CupertinoColors.placeholderText), Widget? prefix, OverlayVisibilityMode prefixMode = OverlayVisibilityMode.always, Widget? suffix, OverlayVisibilityMode suffixMode = OverlayVisibilityMode.always, OverlayVisibilityMode clearButtonMode = OverlayVisibilityMode.never, InputDecoration materialDecoration = const InputDecoration(), TextDirection? textDirection, InputCounterWidgetBuilder? buildCounter, MouseCursor? mouseCursor, TextSelectionControls? selectionControls, AppPrivateCommandCallback? onAppPrivateCommand, BaseParam? baseParam}) -
const
Properties
- autocorrect → bool
-
CupertinoTextField.autocorrect
or
TextField.autocorrect
final
-
autofillHints
→ Iterable<
String> ? -
CupertinoTextField.autofillHints
or
TextField.autofillHints
final
- autofocus → bool
-
CupertinoTextField.autofocus
or
TextField.autofocus
final
- baseParam → BaseParam?
-
Personalization parameters, gets platform parameters first, then mode parameters
finalinherited
- buildCounter → InputCounterWidgetBuilder?
-
TextField.buildCounter
final
- clearButtonMode → OverlayVisibilityMode
-
CupertinoTextField.clearButtonMode
final
- controller → TextEditingController?
-
*** general properties start ***
CupertinoTextField.controller
or
TextField.controller
final
- cupertinoDecoration → BoxDecoration
-
*** general properties end ***
*** cupertino properties start ***
CupertinoTextField.cupertinoDecorationfinal - cursorColor → Color?
-
CupertinoTextField.cursorColor
or
TextField.cursorColor
final
- cursorHeight → double?
-
CupertinoTextField.cursorHeight
or
TextField.cursorHeight
final
- cursorRadius → Radius
-
CupertinoTextField.cursorRadius
or
TextField.cursorRadius
final
- cursorWidth → double
-
CupertinoTextField.cursorWidth
or
TextField.cursorWidth
final
- dragStartBehavior → DragStartBehavior
-
CupertinoTextField.dragStartBehavior
or
TextField.dragStartBehavior
final
- enabled → bool?
-
CupertinoTextField.enabled
or
TextField.enabled
final
- enableInteractiveSelection → bool
-
CupertinoTextField.enableInteractiveSelection
or
TextField.enableInteractiveSelection
final
- enableSuggestions → bool
-
CupertinoTextField.enableSuggestions
or
TextField.enableSuggestions
final
- expands → bool
-
CupertinoTextField.expands
or
TextField.expands
final
- focusNode → FocusNode?
-
CupertinoTextField.focusNode
or
TextField.focusNode
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inputFormatters
→ List<
TextInputFormatter> ? -
CupertinoTextField.inputFormatters
or
TextField.inputFormatters
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardAppearance → Brightness?
-
CupertinoTextField.keyboardAppearance
or
TextField.keyboardAppearance
final
- keyboardType → TextInputType?
-
CupertinoTextField.keyboardType
or
TextField.keyboardType
final
- materialDecoration → InputDecoration
-
*** cupertino properties end ***
*** material properties start ***
TextField.materialDecorationfinal - maxLength → int?
-
CupertinoTextField.maxLength
or
TextField.maxLength
final
- maxLengthEnforcement → MaxLengthEnforcement?
-
CupertinoTextField.maxLengthEnforcement
or
TextField.maxLengthEnforcement
final
- maxLines → int
-
CupertinoTextField.maxLines
or
TextField.maxLines
final
- minLines → int?
-
CupertinoTextField.minLines
or
TextField.minLines
final
- mouseCursor → MouseCursor?
-
TextField.buildCmouseCursorounterfinal - obscureText → bool
-
CupertinoTextField.obscureText
or
TextField.obscureText
final
- obscuringCharacter → String
-
CupertinoTextField.obscuringCharacter
or
TextField.obscuringCharacter
final
- onAppPrivateCommand → AppPrivateCommandCallback?
-
TextField.onAppPrivateCommand
final
-
onChanged
→ ValueChanged<
String> ? -
CupertinoTextField.onChanged
or
TextField.onChanged
final
- onEditingComplete → VoidCallback?
-
CupertinoTextField.onEditingComplete
or
TextField.onEditingComplete
final
-
onSubmitted
→ ValueChanged<
String> ? -
CupertinoTextField.onSubmitted
or
TextField.onSubmitted
final
- onTap → VoidCallback?
-
CupertinoTextField.onTap
or
TextField.onTap
final
- padding → EdgeInsetsGeometry
-
CupertinoTextField.padding
final
- placeholder → String?
-
CupertinoTextField.placeholder
final
- placeholderStyle → TextStyle
-
CupertinoTextField.placeholderStyle
final
- prefix → Widget?
-
CupertinoTextField.prefix
final
- prefixMode → OverlayVisibilityMode
-
CupertinoTextField.prefixMode
final
- readOnly → bool
-
CupertinoTextField.readOnly
or
TextField.readOnly
final
- restorationId → String?
-
CupertinoTextField.restorationId
or
TextField.restorationId
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
CupertinoTextField.scrollController
or
TextField.scrollController
final
- scrollPadding → EdgeInsets
-
CupertinoTextField.scrollPadding
or
TextField.scrollPadding
final
- scrollPhysics → ScrollPhysics?
-
CupertinoTextField.scrollPhysics
or
TextField.scrollPhysics
final
- selectionControls → TextSelectionControls?
-
CupertinoTextField.selectionControls
or
TextField.selectionControls
final
- selectionHeightStyle → BoxHeightStyle
-
CupertinoTextField.selectionHeightStyle
or
TextField.selectionHeightStyle
final
- selectionWidthStyle → BoxWidthStyle
-
CupertinoTextField.selectionWidthStyle
or
TextField.selectionWidthStyle
final
- showCursor → bool?
-
CupertinoTextField.showCursor
or
TextField.showCursor
final
- smartDashesType → SmartDashesType?
-
CupertinoTextField.smartDashesType
or
TextField.smartDashesType
final
- smartQuotesType → SmartQuotesType?
-
CupertinoTextField.smartQuotesType
or
TextField.smartQuotesType
final
- strutStyle → StrutStyle?
-
CupertinoTextField.strutStyle
or
TextField.strutStyle
final
- style → TextStyle?
-
CupertinoTextField.style
or
TextField.style
final
- suffix → Widget?
-
CupertinoTextField.suffix
final
- suffixMode → OverlayVisibilityMode
-
CupertinoTextField.suffixMode
final
- textAlign → TextAlign
-
CupertinoTextField.textAlign
or
TextField.textAlign
final
- textAlignVertical → TextAlignVertical?
-
CupertinoTextField.textAlignVertical
or
TextField.textAlignVertical
final
- textCapitalization → TextCapitalization
-
CupertinoTextField.textCapitalization
or
TextField.textCapitalization
final
- textDirection → TextDirection?
-
TextField.textDirection
final
- textInputAction → TextInputAction?
-
CupertinoTextField.textInputAction
or
TextField.textInputAction
final
- toolbarOptions → ToolbarOptions?
-
CupertinoTextField.toolbarOptions
or
TextField.toolbarOptions
final
Methods
-
beforeBuild(
BuildContext context) → void -
Called before build
inherited
-
beforeBuildByCupertino(
BuildContext context) → void -
Called before buildByCupertino
inherited
-
beforeBuildByCupertinoNative(
BuildContext context) → void -
Called before buildByCupertinoNative (native iOS implementation)
inherited
-
beforeBuildByMaterial(
BuildContext context) → void -
Called before buildByMaterial
inherited
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
inherited
-
buildByCupertino(
BuildContext context) → Widget - *** material properties end ***
-
buildByCupertinoNative(
BuildContext context) → dynamic -
build on cupertino mode with native iOS components (cupertino_native package)
This is called when baseParam.nativeIOS = true
Default implementation falls back to buildByCupertino()
inherited
-
buildByMaterial(
BuildContext context) → Widget - build on material mode
-
commonBuild(
BuildContext context, BaseParam? baseParam) → dynamic -
inherited
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
getBuildMode(
BaseParam? baseParam) → WidgetBuildMode -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
-
valueOf(
String key, dynamic value) → dynamic -
inherited
-
valueOfBaseParam(
BaseParam? baseParam, String key, dynamic value) → dynamic -
No reflection available in Dart
First get value from platform, then from mode, finally from value itself
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited