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<BoxDecoration> decoration, required WidgetStateProperty<double> borderRadius, required WidgetStateProperty<double> borderWidth, required WidgetStateProperty<LabelBuilder> labelBuilder, required WidgetStateProperty<HelperTextBuilder> helperTextBuilder, required WidgetStateProperty<ErrorsBuilder> errorsBuilder, Widget? preWidget, Widget? postWidget, double? height, EdgeInsets? padding, double? fontSize, TInputSize size = TInputSize.md, TInputDecorationType decorationType = TInputDecorationType.box})
-
const
-
TInputFieldTheme.defaultTheme(ColorScheme colors, {TInputDecorationType decorationType = TInputDecorationType.box})
-
factory
Methods
-
buildContainer(Set<WidgetState> states, {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
-
-
copyWith({TInputSize? size, Widget? preWidget, Widget? postWidget, double? height, EdgeInsets? padding, double? fontSize, TInputDecorationType? decorationType, WidgetStateProperty<Color>? color, WidgetStateProperty<Color>? backgroundColor, WidgetStateProperty<Color>? borderColor, WidgetStateProperty<TextStyle>? labelStyle, WidgetStateProperty<TextStyle>? helperTextStyle, WidgetStateProperty<TextStyle>? errorTextStyle, WidgetStateProperty<TextStyle>? tagStyle, WidgetStateProperty<double>? borderRadius, WidgetStateProperty<double>? borderWidth, WidgetStateProperty<BoxDecoration>? decoration, 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