TTextFieldTheme class
Constructors
-
TTextFieldTheme({TInputSize size = TInputSize.md, WidgetStateProperty<Color?>? color, WidgetStateProperty<Color?>? backgroundColor, WidgetStateProperty<Color?>? borderColor, Widget? preWidget, Widget? postWidget, double? height, EdgeInsets? padding, double? fontSize, double? borderRadius, WidgetStateProperty<TextStyle?>? labelStyle, WidgetStateProperty<TextStyle?>? helperTextStyle, WidgetStateProperty<TextStyle?>? errorTextStyle, WidgetStateProperty<TextStyle?>? tagStyle, LabelBuilder? labelBuilder, HelperTextBuilder? helperTextBuilder, ErrorsBuilder? errorsBuilder, BorderBuilder? borderBuilder, BoxShadowBuilder? boxShadowBuilder, DecorationBuilder? decorationBuilder, List<TextInputFormatter>? inputFormatters, TextInputType? keyboardType, TextCapitalization textCapitalization = TextCapitalization.none, bool autocorrect = false, bool enableSuggestions = false, int? maxLength, MaxLengthEnforcement? maxLengthEnforcement, TextInputAction? textInputAction, bool obscureText = false})
-
const
Methods
-
buildBorder(TInputContext ctx, Color color)
→ Border
-
inherited
-
buildBoxShadow(TInputContext ctx, Color color)
→ List<BoxShadow>?
-
inherited
-
buildContainer(TInputContext ctx, {required Widget? child, Widget? additionalPostWidget, Widget? additionalPreWidget, String? label, String? tag, String? helperText, List<String>? errors, bool isRequired = false, bool isMultiline = false, bool block = true})
→ Widget
-
inherited
-
buildDecoration(TInputContext ctx)
→ BoxDecoration
-
inherited
-
buildErrors(TInputContext ctx, List<String> errors)
→ Widget
-
inherited
-
buildHelperText(TInputContext ctx, String? helperText)
→ Widget
-
inherited
-
buildLabel(TInputContext ctx, String? label, String? tag, bool isRequired)
→ Widget
-
inherited
-
buildTextField(ColorScheme colors, {String? label, String? placeholder, bool autoFocus = false, bool readOnly = false, bool disabled = false, int maxLines = 1, FocusNode? focusNode, TextInputType? keyboardType, TextInputAction? textInputAction, List<TextInputFormatter>? inputFormatters, TextEditingController? controller, ValueChanged<String>? onValueChanged})
→ TextField
-
-
copyWith({TInputSize? size, WidgetStateProperty<Color?>? color, WidgetStateProperty<Color?>? backgroundColor, WidgetStateProperty<Color?>? borderColor, Widget? preWidget, Widget? postWidget, double? height, EdgeInsets? padding, double? fontSize, double? borderRadius, WidgetStateProperty<TextStyle?>? labelStyle, WidgetStateProperty<TextStyle?>? helperTextStyle, WidgetStateProperty<TextStyle?>? errorTextStyle, WidgetStateProperty<TextStyle?>? tagStyle, LabelBuilder? labelBuilder, HelperTextBuilder? helperTextBuilder, ErrorsBuilder? errorsBuilder, BorderBuilder? borderBuilder, BoxShadowBuilder? boxShadowBuilder, DecorationBuilder? decorationBuilder, List<TextInputFormatter>? inputFormatters, TextInputType? keyboardType, TextCapitalization? textCapitalization, bool? autocorrect, bool? enableSuggestions, int? maxLength, MaxLengthEnforcement? maxLengthEnforcement, TextInputAction? textInputAction, bool? obscureText})
→ TTextFieldTheme
-
override
-
getHintStyle(ColorScheme colors)
→ TextStyle
-
inherited
-
getInputDecoration(ColorScheme colors, String? label, String? placeholder)
→ InputDecoration
-
-
getInputFormatters(BaseValueType? type, int? decimals)
→ List<TextInputFormatter>
-
-
getKeyboardType(BaseValueType? type)
→ TextInputType
-
-
getTextStyle(ColorScheme colors, bool disabled)
→ TextStyle
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited