This commit is contained in:
Patrick Alvin Alcala 2025-02-17 12:05:32 +08:00
parent f0d6bca4f3
commit 3aa12bfcad
135 changed files with 19410 additions and 112 deletions

View file

@ -7,16 +7,19 @@ class TextWidget extends StatelessWidget {
final double? opacity;
final bool? bold;
final bool? footer;
final bool? underlined;
const TextWidget({super.key, required this.text, this.size, this.opacity, this.bold, this.footer});
const TextWidget({super.key, required this.text, this.size, this.opacity, this.bold, this.footer, this.underlined});
@override
Widget build(BuildContext context) {
final textStyle = TextStyle(
color: Color.fromRGBO(255, 255, 255, opacity ?? 1),
fontSize: size ?? 28,
fontWeight: bold == true ? FontWeight.bold : FontWeight.normal,
);
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: const Color.fromRGBO(255, 255, 255, 1),
decorationThickness: 2);
return footer == true
? Text(text, style: GoogleFonts.inter(textStyle: textStyle))