update
This commit is contained in:
parent
f0d6bca4f3
commit
3aa12bfcad
135 changed files with 19410 additions and 112 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue