GTextFieldConfig class final
Shared configuration for every text-based form field in this package.
The config intentionally mirrors the most common TextFormField options so
teams can start with the built-in presets and still customize production
forms without dropping down to raw Flutter widgets.
Constructors
-
GTextFieldConfig({String? name, TextEditingController? controller, String? initialValue, String? label, String? hint, TextInputType? keyboardType = TextInputType.text, TextInputAction? textInputAction = TextInputAction.next, List<
TextInputFormatter> ? inputFormatters, GFormValidator? validator, void onChanged(String)?, void onFieldSubmitted(String)?, void onSaved(String?)?, IconData? prefixIcon, Widget? prefix, Widget? suffix, Widget? suffixIcon, FocusNode? focusNode, AutovalidateMode? autovalidateMode, bool? enabled, bool readOnly = false, bool obscureText = false, String obscuringCharacter = '*', bool autocorrect = true, bool enableSuggestions = true, int? minLines, int? maxLines = 1, int? maxLength, TextCapitalization textCapitalization = TextCapitalization.none, TextAlign textAlign = TextAlign.start, TextStyle? style, Iterable<String> ? autofillHints, InputDecoration? decoration}) -
const
Properties
- autocorrect → bool
-
final
-
autofillHints
→ Iterable<
String> ? -
final
- autovalidateMode → AutovalidateMode?
-
final
- controller → TextEditingController?
-
final
- decoration → InputDecoration?
-
final
- enabled → bool?
-
final
- enableSuggestions → bool
-
final
- focusNode → FocusNode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hint → String?
-
final
- initialValue → String?
-
final
-
inputFormatters
→ List<
TextInputFormatter> ? -
final
- keyboardType → TextInputType?
-
final
- label → String?
-
final
- maxLength → int?
-
final
- maxLines → int?
-
final
- minLines → int?
-
final
- name → String?
-
final
- obscureText → bool
-
final
- obscuringCharacter → String
-
final
- onChanged → void Function(String)?
-
final
- onFieldSubmitted → void Function(String)?
-
final
- onSaved → void Function(String?)?
-
final
- prefix → Widget?
-
final
- prefixIcon → IconData?
-
final
- readOnly → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → TextStyle?
-
final
- suffix → Widget?
-
final
- suffixIcon → Widget?
-
final
- textAlign → TextAlign
-
final
- textCapitalization → TextCapitalization
-
final
- textInputAction → TextInputAction?
-
final
- validator → GFormValidator?
-
final
Methods
-
copyWith(
{String? name, TextEditingController? controller, String? initialValue, String? label, String? hint, TextInputType? keyboardType, TextInputAction? textInputAction, List< TextInputFormatter> ? inputFormatters, GFormValidator? validator, void onChanged(String)?, void onFieldSubmitted(String)?, void onSaved(String?)?, IconData? prefixIcon, Widget? prefix, Widget? suffix, Widget? suffixIcon, FocusNode? focusNode, AutovalidateMode? autovalidateMode, bool? enabled, bool? readOnly, bool? obscureText, String? obscuringCharacter, bool? autocorrect, bool? enableSuggestions, int? minLines, int? maxLines, int? maxLength, TextCapitalization? textCapitalization, TextAlign? textAlign, TextStyle? style, Iterable<String> ? autofillHints, InputDecoration? decoration}) → GTextFieldConfig -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited