FilledOrOutlinedTextTheme constructor

FilledOrOutlinedTextTheme({
  1. TextStyle? hintStyle,
  2. TextStyle? helperStyle,
  3. EdgeInsetsGeometry? contentPadding,
  4. double radius = 4,
  5. double width = 1.5,
  6. Color? enabledColor,
  7. Color? focusedColor,
  8. TextStyle? labelStyle,
  9. TextStyle? floatingLabelStyle,
  10. TextStyle? errorStyle,
  11. Color fillColor = Colors.black12,
  12. Color? prefixIconColor,
  13. Color? suffixIconColor,
  14. int? helperMaxLines,
  15. int? errorMaxLines,
  16. Color? errorBorderColor,
  17. Color? iconColor,
  18. TextStyle? prefixStyle,
  19. TextStyle? suffixStyle,
  20. FloatingLabelBehavior floatingLabelBehavior = FloatingLabelBehavior.auto,
  21. 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),
        ),
      );