pharmacy_mobile/lib/widgets/text_widget.dart
2025-01-27 17:26:00 +08:00

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