TagText function

Widget TagText(
  1. String title, {
  2. Color? color = Colors.pinkAccent,
  3. Color? textColor = Colors.white,
  4. double fontSize = 11,
  5. double radius = 2,
  6. EdgeInsets? padding = tagPadding,
})

Implementation

Widget TagText(String title,
    {Color? color = Colors.pinkAccent, Color? textColor = Colors.white, double fontSize = 11, double radius = 2, EdgeInsets? padding = tagPadding}) {
  return title.bodySmall(fontSize: fontSize, color: textColor).padded(padding).roundRect(radius: radius, fillColor: color);
}