RsTextFormField class
Custom Textformfield with predefined params, style, etc.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- RsTextFormField
Constructors
-
RsTextFormField({required TextEditingController controller, required String label, String? validator(String? value)?, TextInputType? keyboardType, bool? enabled, TextStyle? textStyle, dynamic onChanged(String)?, dynamic onTapOutside(PointerDownEvent)?, VoidCallback? onTap, String? hintText, TextStyle? hintTextStyle, List<
TextInputFormatter> ? inputFormatters, int? minLines = 1, int? maxLines = 1, int? maxLength = 255, bool? obscureText = false, bool? readOnly = false, bool? alignLabelWithHint = true, bool? addEmailValidation = false, double? borderRadius = 20.0, double? contentPadding = 12.0, String? counterText = "", Key? key}) -
const
Properties
- addEmailValidation → bool?
-
Default is
falsefinal - alignLabelWithHint → bool?
-
Default is
truefinal - borderRadius → double?
-
Default is
20.0final - contentPadding → double?
-
Default is
12.0final - controller → TextEditingController
-
final
- counterText → String?
-
Default is
"", i.e., No counter text will be visible, (like 0/255 length).final - enabled → bool?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintText → String?
-
final
- hintTextStyle → TextStyle?
-
final
-
inputFormatters
→ List<
TextInputFormatter> ? -
e.g.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType?
-
final
- label → String
-
final
- maxLength → int?
-
Default is
255characters.final - maxLines → int?
-
Default is
1final - minLines → int?
-
Default is
1final - obscureText → bool?
-
Default is
falsefinal - onChanged → dynamic Function(String)?
-
final
- onTap → VoidCallback?
-
final
- onTapOutside → dynamic Function(PointerDownEvent)?
-
Default is
Unfocus, i.e., hide keyboard.final - readOnly → bool?
-
Default is
falsefinal - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textStyle → TextStyle?
-
final
- validator → String? Function(String? value)?
-
Default:
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
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
-
isEmailValid(
String email) → bool -
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