diff --git a/lib/widgets/text_widget.dart b/lib/widgets/text_widget.dart index bb3bce9..efc6e3b 100644 --- a/lib/widgets/text_widget.dart +++ b/lib/widgets/text_widget.dart @@ -10,18 +10,27 @@ class TextWidget extends StatelessWidget { final bool? underlined; final Color? color; - const TextWidget( - {super.key, required this.text, this.size, this.opacity, this.bold, this.title, this.underlined, this.color}); + const TextWidget({ + super.key, + required this.text, + this.size, + this.opacity, + this.bold, + this.title, + this.underlined, + this.color, + }); @override Widget build(BuildContext context) { final textStyle = TextStyle( - color: color ?? Color.fromRGBO(255, 255, 255, opacity ?? 1), - fontSize: size ?? 28, - fontWeight: bold == true ? FontWeight.bold : FontWeight.normal, - decoration: underlined == true ? TextDecoration.underline : TextDecoration.none, - decorationColor: color ?? const Color.fromRGBO(255, 255, 255, 1), - decorationThickness: 1); + color: color ?? Color.fromRGBO(255, 255, 255, opacity ?? 1), + fontSize: size ?? 28, + fontWeight: bold == true ? FontWeight.bold : FontWeight.normal, + decoration: underlined == true ? TextDecoration.underline : TextDecoration.none, + decorationColor: color ?? const Color.fromRGBO(255, 255, 255, 1), + decorationThickness: 1, + ); return title == true ? Text(text, style: GoogleFonts.outfit(textStyle: textStyle))