update
This commit is contained in:
parent
b5151a053d
commit
cf2ce36f87
14 changed files with 92 additions and 74 deletions
|
|
@ -6,16 +6,20 @@ class TextWidget extends StatelessWidget {
|
|||
final double? size;
|
||||
final double? opacity;
|
||||
final bool? bold;
|
||||
final bool? footer;
|
||||
|
||||
const TextWidget({super.key, required this.text, this.size, this.opacity, this.bold});
|
||||
const TextWidget({super.key, required this.text, this.size, this.opacity, this.bold, this.footer});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Text(text,
|
||||
style: GoogleFonts.outfit(
|
||||
textStyle: TextStyle(
|
||||
color: Color.fromRGBO(255, 255, 255, opacity ?? 1),
|
||||
fontSize: size ?? 28,
|
||||
fontWeight: bold == true ? FontWeight.bold : FontWeight.normal)));
|
||||
final textStyle = TextStyle(
|
||||
color: Color.fromRGBO(255, 255, 255, opacity ?? 1),
|
||||
fontSize: size ?? 28,
|
||||
fontWeight: bold == true ? FontWeight.bold : FontWeight.normal,
|
||||
);
|
||||
|
||||
return footer == true
|
||||
? Text(text, style: GoogleFonts.inter(textStyle: textStyle))
|
||||
: Text(text, style: GoogleFonts.outfit(textStyle: textStyle));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue