15 lines
442 B
Dart
15 lines
442 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
|
|
class TextWidget extends StatelessWidget {
|
|
final String text;
|
|
final double? size;
|
|
|
|
const TextWidget({super.key, required this.text, this.size});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Text(text,
|
|
style: GoogleFonts.outfit(textStyle: TextStyle(color: Color.fromRGBO(255, 255, 255, 1), fontSize: size ?? 32)));
|
|
}
|
|
}
|