update
This commit is contained in:
parent
cbf2ff062f
commit
7886eeb6c2
26 changed files with 210 additions and 228 deletions
|
|
@ -6,12 +6,12 @@ class TextWidget extends StatelessWidget {
|
|||
final double? size;
|
||||
final double? opacity;
|
||||
final bool? bold;
|
||||
final bool? footer;
|
||||
final bool? title;
|
||||
final bool? underlined;
|
||||
final Color? color;
|
||||
|
||||
const TextWidget(
|
||||
{super.key, required this.text, this.size, this.opacity, this.bold, this.footer, this.underlined, this.color});
|
||||
{super.key, required this.text, this.size, this.opacity, this.bold, this.title, this.underlined, this.color});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
@ -23,8 +23,8 @@ class TextWidget extends StatelessWidget {
|
|||
decorationColor: const Color.fromRGBO(255, 255, 255, 1),
|
||||
decorationThickness: 2);
|
||||
|
||||
return footer == true
|
||||
? Text(text, style: GoogleFonts.inter(textStyle: textStyle))
|
||||
: Text(text, style: GoogleFonts.outfit(textStyle: textStyle));
|
||||
return title == true
|
||||
? Text(text, style: GoogleFonts.outfit(textStyle: textStyle))
|
||||
: Text(text, style: GoogleFonts.inter(textStyle: textStyle));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue