update
This commit is contained in:
parent
a06b1287f0
commit
27f654837b
47 changed files with 428 additions and 205 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue