RistoTextField class

A standardized text input field matching the Risto design language.

Inheritance

Constructors

RistoTextField({Key? key, TextEditingController? controller, String? title, String? hint, bool isSecret = false, TextInputType? keyboardType, String? validator(String?)?, void onChanged(String)?, void onSubmitted(String)?, FocusNode? focusNode, List<TextInputFormatter>? inputFormatters, EdgeInsetsGeometry? margin, double borderRadius = 12.0, Color? borderColor, Color? fillColor, Color? focusedBorderColor, Color? errorBorderColor, TextStyle? textStyle, TextStyle? titleStyle, TextStyle? hintStyle, TextStyle? errorStyle, Widget? innerLeading, Widget? innerTrailing, Widget? outerLeading, Widget? outerTrailing, double outerSpacing = 10.0, double? fieldHeight, EdgeInsetsGeometry? contentPadding, TextAlignVertical? textAlignVertical, int? maxLength, String? counterText, bool isDense = false, bool readOnly = false, TapRegionCallback? onTapOutside, bool horizontalLayout = false})
const
RistoTextField.email({Key? key, TextEditingController? controller, String? title, String? hint, String? validator(String?)?, void onChanged(String)?, void onSubmitted(String)?, FocusNode? focusNode, EdgeInsetsGeometry? margin, double borderRadius = 12.0, bool horizontalLayout = false, Color? fillColor, Color? borderColor, Color? focusedBorderColor, EdgeInsetsGeometry? contentPadding, double? fieldHeight})
factory
RistoTextField.number({Key? key, TextEditingController? controller, String? title, String? hint, String? validator(String?)?, void onChanged(String)?, void onSubmitted(String)?, FocusNode? focusNode, EdgeInsetsGeometry? margin, double borderRadius = 12.0, Widget? innerLeading, Widget? innerTrailing, bool horizontalLayout = false, bool allowDecimals = true, Color? fillColor, Color? borderColor, Color? focusedBorderColor, EdgeInsetsGeometry? contentPadding, double? fieldHeight})
factory
RistoTextField.password({Key? key, TextEditingController? controller, String? title, String? hint, String? validator(String?)?, void onChanged(String)?, void onSubmitted(String)?, FocusNode? focusNode, EdgeInsetsGeometry? margin, double borderRadius = 12.0, Widget? innerLeading, bool horizontalLayout = false, Color? fillColor, Color? borderColor, Color? focusedBorderColor, EdgeInsetsGeometry? contentPadding, double? fieldHeight})
factory
RistoTextField.search({Key? key, TextEditingController? controller, String? hint, String? validator(String?)?, void onChanged(String)?, void onSubmitted(String)?, FocusNode? focusNode, Widget? outerLeading, Widget? outerTrailing, double outerSpacing = 10.0, double? fieldHeight, EdgeInsetsGeometry? contentPadding, Color? fillColor, Color? borderColor, Color? focusedBorderColor, Color? errorBorderColor, EdgeInsetsGeometry? margin, double borderRadius = 15.0, Widget? innerLeading, Widget? innerTrailing, int? maxLength, bool isDense = true})
factory

Properties

borderColor Color?
final
borderRadius double
final
contentPadding EdgeInsetsGeometry?
final
controller TextEditingController?
final
counterText String?
final
errorBorderColor Color?
final
errorStyle TextStyle?
final
fieldHeight double?
The visual height of the outer action buttons. Defaults to 54.0.
final
fillColor Color?
final
focusedBorderColor Color?
final
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
hint String?
final
hintStyle TextStyle?
final
horizontalLayout bool
final
innerLeading Widget?
final
innerTrailing Widget?
final
inputFormatters List<TextInputFormatter>?
final
isDense bool
final
isSecret bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType?
final
margin EdgeInsetsGeometry?
final
maxLength int?
final
onChanged → void Function(String)?
final
onSubmitted → void Function(String)?
final
onTapOutside TapRegionCallback?
final
outerLeading Widget?
final
outerSpacing double
final
outerTrailing Widget?
final
readOnly bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textAlignVertical TextAlignVertical?
final
textStyle TextStyle?
final
title String?
final
titleStyle TextStyle?
final
validator String? Function(String?)?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<RistoTextField>
Creates the mutable state for this widget at a given location in the tree.
override
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, 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

Operators

operator ==(Object other) bool
The equality operator.
inherited