FilledOrOutlinedTextTheme constructor
FilledOrOutlinedTextTheme({
- TextStyle? hintStyle,
- TextStyle? helperStyle,
- EdgeInsetsGeometry? contentPadding,
- double radius = 4,
- double width = 1.5,
- Color? enabledColor,
- Color? focusedColor,
- TextStyle? labelStyle,
- TextStyle? floatingLabelStyle,
- TextStyle? errorStyle,
- Color fillColor = Colors.black12,
- Color? prefixIconColor,
- Color? suffixIconColor,
- int? helperMaxLines,
- int? errorMaxLines,
- Color? errorBorderColor,
- Color? iconColor,
- TextStyle? prefixStyle,
- TextStyle? suffixStyle,
- FloatingLabelBehavior floatingLabelBehavior = FloatingLabelBehavior.auto,
- FloatingLabelAlignment floatingLabelAlignment = FloatingLabelAlignment.start,
Implementation
FilledOrOutlinedTextTheme({
TextStyle? hintStyle,
TextStyle? helperStyle,
EdgeInsetsGeometry? contentPadding,
double radius = 4,
double width = 1.5,
Color? enabledColor,
Color? focusedColor,
TextStyle? labelStyle,
TextStyle? floatingLabelStyle,
TextStyle? errorStyle,
Color fillColor = Colors.black12,
Color? prefixIconColor,
Color? suffixIconColor,
int? helperMaxLines,
int? errorMaxLines,
Color? errorBorderColor,
Color? iconColor,
TextStyle? prefixStyle,
TextStyle? suffixStyle,
FloatingLabelBehavior floatingLabelBehavior = FloatingLabelBehavior.auto,
FloatingLabelAlignment floatingLabelAlignment =
FloatingLabelAlignment.start,
}) : super(
filled: true,
fillColor: fillColor,
floatingLabelStyle: floatingLabelStyle,
labelStyle: labelStyle,
hintStyle: hintStyle,
contentPadding: contentPadding,
errorStyle: errorStyle,
prefixIconColor: prefixIconColor,
suffixIconColor: suffixIconColor,
helperStyle: helperStyle,
helperMaxLines: helperMaxLines,
errorMaxLines: errorMaxLines,
errorBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(radius),
borderSide: BorderSide(
width: width, color: errorBorderColor ?? Colors.transparent),
),
floatingLabelBehavior: floatingLabelBehavior,
floatingLabelAlignment: floatingLabelAlignment,
iconColor: iconColor,
prefixStyle: prefixStyle,
suffixStyle: suffixStyle,
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(radius),
borderSide: focusedColor != null || enabledColor != null
? const BorderSide()
: BorderSide.none,
),
enabledBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(radius),
borderSide: BorderSide(
width: width, color: enabledColor ?? Colors.transparent),
),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(
width: width, color: focusedColor ?? Colors.transparent),
borderRadius: BorderRadius.circular(radius),
),
);