TextFormFieldCustom class
TODO: Bug When textformfield show message error When message error show, position of SuffixIcon still same and make weird look. Planning : Check if textformfield has error validate, then position suffix icon should be increase
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TextFormFieldCustom
Constructors
-
TextFormFieldCustom({Key? key, bool isPassword = false, bool isEnabled = true, bool isDone = false, bool centerText = false, bool disableOutlineBorder = true, bool autoFocus = false, bool readOnly = false, Color backgroundColor = Colors.white, EdgeInsetsGeometry padding = const EdgeInsets.only(bottom: 16.0, left: 16.0, right: 16.0, top: 16.0), int errorMaxLines = 2, double radius = 8, TextInputType keyboardType = TextInputType.text, TextInputAction textInputAction = TextInputAction.done, List<
Widget> suffixIcon = const [], SuffixIconConfiguration suffixIconConfiguration = const SuffixIconConfiguration(), TextCapitalization textCapitalization = TextCapitalization.none, Color? activeColor, Widget? prefixIcon, InputBorderStyle? focusedErrorBorderStyle, InputBorderStyle? focusedBorderStyle, InputBorderStyle? disabledBorderStyle, InputBorderStyle? enabledBorderStyle, InputBorderStyle? defaultBorderStyle, InputBorderStyle? errorBorderStyle, IconData onObsecurePasswordIcon(bool isObsecure)?, Color onObsecurePasswordColor(bool isObsecure)?, String? hintText, String? labelText, String? initialValue, String? errorMessage, int? minLines, int? maxLines, TextStyle? errorStyle, TextStyle? textStyle, TextStyle? prefixTextStyle, TextStyle? suffixTextStyle, TextStyle? labelStyle, FocusNode? focusNode, List<TextInputFormatter> ? inputFormatter, TextEditingController? controller, TextStyle? hintStyle, FormFieldValidator<String> ? validator, ValueChanged<String> ? onFieldSubmitted, ValueChanged<String> ? onChanged, FormFieldSetter<String> ? onSaved, VoidCallback? onTap}) -
const
Properties
- activeColor → Color?
-
final
- autoFocus → bool
-
final
- backgroundColor → Color
-
final
- centerText → bool
-
final
- controller → TextEditingController?
-
final
- defaultBorderStyle → InputBorderStyle?
-
final
- disabledBorderStyle → InputBorderStyle?
-
final
- disableOutlineBorder → bool
-
final
- enabledBorderStyle → InputBorderStyle?
-
final
- errorBorderStyle → InputBorderStyle?
-
final
- errorMaxLines → int
-
final
- errorMessage → String?
-
final
- errorStyle → TextStyle?
-
final
- focusedBorderStyle → InputBorderStyle?
-
final
- focusedErrorBorderStyle → InputBorderStyle?
-
final
- focusNode → FocusNode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintStyle → TextStyle?
-
final
- hintText → String?
-
final
- initialValue → String?
-
final
-
inputFormatter
→ List<
TextInputFormatter> ? -
final
- isDone → bool
-
final
- isEnabled → bool
-
final
- isPassword → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType
-
final
- labelStyle → TextStyle?
-
final
- labelText → String?
-
final
- maxLines → int?
-
final
- minLines → int?
-
final
-
onChanged
→ ValueChanged<
String> ? -
final
-
onFieldSubmitted
→ ValueChanged<
String> ? -
final
- onObsecurePasswordColor → Color Function(bool isObsecure)?
-
final
- onObsecurePasswordIcon → IconData Function(bool isObsecure)?
-
final
-
onSaved
→ FormFieldSetter<
String> ? -
final
- onTap → VoidCallback?
-
final
- padding → EdgeInsetsGeometry
-
final
- prefixIcon → Widget?
-
Icon sebelah kiri
final
- prefixTextStyle → TextStyle?
-
final
- radius → double
-
final
- readOnly → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
suffixIcon
→ List<
Widget> -
Icon sebelah kanan
final
- suffixIconConfiguration → SuffixIconConfiguration
-
final
- suffixTextStyle → TextStyle?
-
final
- textCapitalization → TextCapitalization
-
final
- textInputAction → TextInputAction
-
final
- textStyle → TextStyle?
-
final
-
validator
→ FormFieldValidator<
String> ? -
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _TextFormFieldCustomState -
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}) → 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