update
This commit is contained in:
parent
5469c484e1
commit
c87b10a050
11 changed files with 241 additions and 39 deletions
|
|
@ -3,12 +3,13 @@ import 'package:google_fonts/google_fonts.dart';
|
|||
|
||||
class TextWidget extends StatelessWidget {
|
||||
final String text;
|
||||
final double? size;
|
||||
|
||||
const TextWidget({super.key, required this.text});
|
||||
const TextWidget({super.key, required this.text, this.size});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Text(text,
|
||||
style: GoogleFonts.outfit(textStyle: const TextStyle(color: Color.fromRGBO(255, 255, 255, 1), fontSize: 32)));
|
||||
style: GoogleFonts.outfit(textStyle: TextStyle(color: Color.fromRGBO(255, 255, 255, 1), fontSize: size ?? 32)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue