This commit is contained in:
Patrick Alvin Alcala 2025-01-27 17:26:00 +08:00
parent 5469c484e1
commit c87b10a050
11 changed files with 241 additions and 39 deletions

View file

@ -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)));
}
}