This commit is contained in:
Patrick Alvin Alcala 2025-02-18 17:19:24 +08:00
parent a06b1287f0
commit 27f654837b
47 changed files with 428 additions and 205 deletions

View file

@ -8,13 +8,15 @@ class TextWidget extends StatelessWidget {
final bool? bold;
final bool? footer;
final bool? underlined;
final Color? color;
const TextWidget({super.key, required this.text, this.size, this.opacity, this.bold, this.footer, this.underlined});
const TextWidget(
{super.key, required this.text, this.size, this.opacity, this.bold, this.footer, this.underlined, this.color});
@override
Widget build(BuildContext context) {
final textStyle = TextStyle(
color: Color.fromRGBO(255, 255, 255, opacity ?? 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,