import 'package:flutter/material.dart'; class LatestReportHeader extends StatelessWidget{ const LatestReportHeader({super.key, required this.text, this.bigHeader = false}); final String text; final bool bigHeader; @override Widget build(BuildContext context) { return Text( text, style: TextStyle( fontSize: bigHeader ? 32 : 24, fontWeight: FontWeight.w700, decoration: bigHeader ? TextDecoration.underline : TextDecoration.none, ) ); } }