TInputFieldTheme class
Constructors
-
TInputFieldTheme({required WidgetStateProperty<Color> color, required WidgetStateProperty<Color> backgroundColor, required WidgetStateProperty<Color> borderColor, required WidgetStateProperty<TextStyle> labelStyle, required WidgetStateProperty<TextStyle> helperTextStyle, required WidgetStateProperty<TextStyle> errorTextStyle, required WidgetStateProperty<TextStyle> tagStyle, required WidgetStateProperty<TextStyle> hintStyle, required WidgetStateProperty<double> borderRadius, required WidgetStateProperty<double> borderWidth, required WidgetStateProperty<LabelBuilder> labelBuilder, required WidgetStateProperty<ErrorsBuilder> errorsBuilder, required WidgetStateProperty<HelperTextBuilder> helperTextBuilder, Widget? preWidget, Widget? postWidget, double? height, EdgeInsets? padding, double? fontSize, required TInputSize size, required TInputDecorationType decorationType, required TLabelPosition labelPosition})
-
const
-
TInputFieldTheme.defaultTheme(ColorScheme colors, {TInputSize size = defaultInputSize, TInputDecorationType decorationType = defaultInputDecorationType, TLabelPosition labelPosition = defaultLabelPosition})
-
factory
Methods
-
buildInfoIcon(String info, ColorScheme colors)
→ Widget
-
-
buildInputBorder(Set<WidgetState> states)
→ InputBorder
-
-
buildInputDecoration(Set<WidgetState> states, {bool expands = false, Widget? beforePostWidget, Widget? beforePreWidget, String? label, String? placeholder, String? tag, String? helperText, List<String>? errors, bool isRequired = false, VoidCallback? onClear, Widget? infoIcon})
→ InputDecoration
-
-
copyWith({TInputSize? size, Widget? preWidget, Widget? postWidget, double? height, EdgeInsets? padding, double? fontSize, TInputDecorationType? decorationType, TLabelPosition? labelPosition, WidgetStateProperty<Color>? color, WidgetStateProperty<Color>? backgroundColor, WidgetStateProperty<Color>? borderColor, WidgetStateProperty<TextStyle>? labelStyle, WidgetStateProperty<TextStyle>? helperTextStyle, WidgetStateProperty<TextStyle>? errorTextStyle, WidgetStateProperty<TextStyle>? tagStyle, WidgetStateProperty<TextStyle>? hintStyle, WidgetStateProperty<double>? borderRadius, WidgetStateProperty<double>? borderWidth, WidgetStateProperty<LabelBuilder>? labelBuilder, WidgetStateProperty<HelperTextBuilder>? helperTextBuilder, WidgetStateProperty<ErrorsBuilder>? errorsBuilder})
→ TInputFieldTheme
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited