FormeCupertinoNumberField class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FormeCupertinoNumberField
Constructors
-
FormeCupertinoNumberField({Key? key, String? name, double? initialValue, FormeAsyncValidator<
double?> ? asyncValidator, Duration? asyncValidatorDebounce, AutovalidateMode? autovalidateMode, FormeFieldDecorator<double?> ? decorator, bool enabled = true, FocusNode? focusNode, FormeFieldInitialized<double?> ? onInitialized, FormeFieldSetter<double?> ? onSaved, FormeFieldStatusChanged<double?> ? onStatusChanged, int? order, bool quietlyValidate = false, bool readOnly = false, bool requestFocusOnUserInteraction = true, FormeFieldValidationFilter<double?> ? validationFilter, FormeValidator<double?> ? validator, bool allowNegative = false, int decimal = 0, double? max, BoxDecoration? decoration = _kDefaultRoundedBorderDecoration, EdgeInsetsGeometry padding = const EdgeInsets.all(7.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, TextInputType? keyboardType = TextInputType.number, TextInputAction? textInputAction, TextCapitalization textCapitalization = TextCapitalization.none, TextStyle? style, StrutStyle? strutStyle, TextAlign textAlign = TextAlign.start, TextAlignVertical? textAlignVertical, bool? showCursor, bool autofocus = false, String obscuringCharacter = '•', bool obscureText = false, bool autocorrect = true, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, bool enableSuggestions = true, int? minLines, bool expands = false, int? maxLength, MaxLengthEnforcement? maxLengthEnforcement, VoidCallback? onEditingComplete, ValueChanged<String> ? onSubmitted, List<TextInputFormatter> ? inputFormatters, double cursorWidth = 2.0, double? cursorHeight, Radius cursorRadius = const Radius.circular(2.0), Color? cursorColor, BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight, BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight, Brightness? keyboardAppearance, EdgeInsets scrollPadding = const EdgeInsets.all(20.0), bool? enableInteractiveSelection, TextSelectionControls? selectionControls, DragStartBehavior dragStartBehavior = DragStartBehavior.start, ScrollController? scrollController, ScrollPhysics? scrollPhysics, GestureTapCallback? onTap, Iterable<String> ? autofillHints, bool enableIMEPersonalizedLearning = true, TextDirection? textDirection, Clip clipBehavior = Clip.hardEdge, bool scribbleEnabled = true, TapRegionCallback? onTapOutside, EditableTextContextMenuBuilder? contextMenuBuilder = _defaultContextMenuBuilder, SpellCheckConfiguration? spellCheckConfiguration, TextMagnifierConfiguration? magnifierConfiguration, int? maxLines = 1}) -
FormeCupertinoNumberField.borderless({double? initialValue, String? name, bool readOnly = false, Key? key, int? maxLines = 1, int? order, BoxDecoration? decoration, EdgeInsetsGeometry padding = const EdgeInsets.all(7.0), String? placeholder, TextStyle placeholderStyle = _kDefaultPlaceholderStyle, Widget? prefix, OverlayVisibilityMode prefixMode = OverlayVisibilityMode.always, Widget? suffix, OverlayVisibilityMode suffixMode = OverlayVisibilityMode.always, OverlayVisibilityMode clearButtonMode = OverlayVisibilityMode.never, TextInputType? keyboardType, TextInputAction? textInputAction, TextCapitalization textCapitalization = TextCapitalization.none, TextStyle? style, StrutStyle? strutStyle, TextAlign textAlign = TextAlign.start, TextAlignVertical? textAlignVertical, bool? showCursor, bool autofocus = false, String obscuringCharacter = '•', bool obscureText = false, bool autocorrect = true, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, bool enableSuggestions = true, int? minLines, bool expands = false, int? maxLength, MaxLengthEnforcement? maxLengthEnforcement, VoidCallback? onEditingComplete, ValueChanged<
String> ? onSubmitted, List<TextInputFormatter> ? inputFormatters, bool enabled = true, double cursorWidth = 2.0, double? cursorHeight, Radius cursorRadius = const Radius.circular(2.0), Color? cursorColor, BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight, BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight, Brightness? keyboardAppearance, EdgeInsets scrollPadding = const EdgeInsets.all(20.0), bool? enableInteractiveSelection, TextSelectionControls? selectionControls, DragStartBehavior dragStartBehavior = DragStartBehavior.start, ScrollController? scrollController, ScrollPhysics? scrollPhysics, GestureTapCallback? onTap, Iterable<String> ? autofillHints, bool quietlyValidate = false, Duration? asyncValidatorDebounce, AutovalidateMode? autovalidateMode, FormeFieldStatusChanged<double?> ? onStatusChanged, FormeFieldInitialized<double?> ? onInitialized, FormeFieldSetter<double?> ? onSaved, FormeValidator<double?> ? validator, FormeAsyncValidator<double?> ? asyncValidator, FormeFieldDecorator<double?> ? decorator, bool enableIMEPersonalizedLearning = true, FormeFieldValidationFilter<double?> ? validationFilter, FocusNode? focusNode, TextDirection? textDirection, Clip clipBehavior = Clip.hardEdge, bool scribbleEnabled = true, TapRegionCallback? onTapOutside, EditableTextContextMenuBuilder? contextMenuBuilder = _defaultContextMenuBuilder, SpellCheckConfiguration? spellCheckConfiguration, TextMagnifierConfiguration? magnifierConfiguration, bool requestFocusOnUserInteraction = true, bool allowNegative = false, int decimal = 0, double? max})
Properties
- allowNegative → bool
-
final
-
asyncValidator
→ FormeAsyncValidator<
double?> ? -
used to perform an async validation
finalinherited
- asyncValidatorDebounce → Duration?
-
not worked when validate manually
finalinherited
- autocorrect → bool
-
final
-
autofillHints
→ Iterable<
String> ? -
final
- autofocus → bool
-
final
- autovalidateMode → AutovalidateMode
-
finalinherited
-
builder
→ FormeFieldBuilder<
double?> -
finalinherited
- clearButtonMode → OverlayVisibilityMode
-
final
- clipBehavior → Clip
-
final
- contextMenuBuilder → EditableTextContextMenuBuilder?
-
final
- cursorColor → Color?
-
final
- cursorHeight → double?
-
final
- cursorRadius → Radius
-
final
- cursorWidth → double
-
final
- decimal → int
-
final
- decoration → BoxDecoration?
-
final
-
decorator
→ FormeFieldDecorator<
double?> ? -
used to decorate field
finalinherited
- dragStartBehavior → DragStartBehavior
-
final
- enabled → bool
-
whether field is enabled,
finalinherited
- enableIMEPersonalizedLearning → bool
-
final
- enableInteractiveSelection → bool?
-
final
- enableSuggestions → bool
-
final
- expands → bool
-
final
- fieldType → Type
-
no setterinherited
- focusNode → FocusNode?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → double?
-
initial value
finalinherited
-
inputFormatters
→ List<
TextInputFormatter> ? -
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardAppearance → Brightness?
-
final
- keyboardType → TextInputType?
-
final
- magnifierConfiguration → TextMagnifierConfiguration?
-
final
- max → double?
-
final
- maxLength → int?
-
final
- maxLengthEnforcement → MaxLengthEnforcement?
-
final
- maxLines → int?
-
final
- minLines → int?
-
final
- name → String?
-
field name
finalinherited
- obscureText → bool
-
final
- obscuringCharacter → String
-
final
- onEditingComplete → VoidCallback?
-
final
-
onInitialized
→ FormeFieldInitialized<
double?> ? -
called immediately after
FormeFieldState.initStatus
finalinherited -
onSaved
→ FormeFieldSetter<
double?> ? -
finalinherited
-
onStatusChanged
→ FormeFieldStatusChanged<
double?> ? -
listen field status change
finalinherited
-
onSubmitted
→ ValueChanged<
String> ? -
final
- onTap → GestureTapCallback?
-
final
- onTapOutside → TapRegionCallback?
-
final
- order → int?
-
used to support
Forme.autovalidateByOrder
finalinherited - padding → EdgeInsetsGeometry
-
final
- placeholder → String?
-
final
- placeholderStyle → TextStyle
-
final
- prefix → Widget?
-
final
- prefixMode → OverlayVisibilityMode
-
final
- quietlyValidate → bool
-
quietlyValidate
finalinherited
- readOnly → bool
-
finalinherited
- requestFocusOnUserInteraction → bool
-
whether request focus when field value changed
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scribbleEnabled → bool
-
final
- scrollController → ScrollController?
-
final
- scrollPadding → EdgeInsets
-
final
- scrollPhysics → ScrollPhysics?
-
final
- selectionControls → TextSelectionControls?
-
final
- selectionHeightStyle → BoxHeightStyle
-
final
- selectionWidthStyle → BoxWidthStyle
-
final
- showCursor → bool?
-
final
- smartDashesType → SmartDashesType?
-
final
- smartQuotesType → SmartQuotesType?
-
final
- spellCheckConfiguration → SpellCheckConfiguration?
-
final
- strutStyle → StrutStyle?
-
final
- style → TextStyle?
-
final
- suffix → Widget?
-
final
- suffixMode → OverlayVisibilityMode
-
final
- textAlign → TextAlign
-
final
- textAlignVertical → TextAlignVertical?
-
final
- textCapitalization → TextCapitalization
-
final
- textDirection → TextDirection?
-
final
- textInputAction → TextInputAction?
-
final
-
validationFilter
→ FormeFieldValidationFilter<
double?> ? -
used to determine whether perform a validation
finalinherited
-
validator
→ FormeValidator<
double?> ? -
sync validator
finalinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → FormeFieldState< double?> - Creates the mutable state for this widget at a given location in the tree.
-
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
-
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}) → 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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited