update
This commit is contained in:
parent
97e2291159
commit
57b8bdc067
17 changed files with 245 additions and 114 deletions
|
|
@ -4,12 +4,18 @@ import 'package:google_fonts/google_fonts.dart';
|
|||
class TextWidget extends StatelessWidget {
|
||||
final String text;
|
||||
final double? size;
|
||||
final double? opacity;
|
||||
final bool? bold;
|
||||
|
||||
const TextWidget({super.key, required this.text, this.size});
|
||||
const TextWidget({super.key, required this.text, this.size, this.opacity, this.bold});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Text(text,
|
||||
style: GoogleFonts.outfit(textStyle: TextStyle(color: Color.fromRGBO(255, 255, 255, 1), fontSize: size ?? 32)));
|
||||
style: GoogleFonts.outfit(
|
||||
textStyle: TextStyle(
|
||||
color: Color.fromRGBO(255, 255, 255, opacity ?? 1),
|
||||
fontSize: size ?? 32,
|
||||
fontWeight: bold == true ? FontWeight.bold : FontWeight.normal)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue