Updated widget
This commit is contained in:
parent
f4ab256fa0
commit
908308b62e
1 changed files with 17 additions and 8 deletions
|
|
@ -10,8 +10,16 @@ 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) {
|
||||
|
|
@ -21,7 +29,8 @@ class TextWidget extends StatelessWidget {
|
|||
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);
|
||||
decorationThickness: 1,
|
||||
);
|
||||
|
||||
return title == true
|
||||
? Text(text, style: GoogleFonts.outfit(textStyle: textStyle))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue