import 'package:flutter/material.dart'; class SectionTitle extends StatelessWidget { const SectionTitle({ Key? key, required this.title, required this.pressSeeAll, }) : super(key: key); final String title; final VoidCallback pressSeeAll; @override Widget build(BuildContext context) { return Row( mainAxisAlignment: MainAxisAlignment.center, children: [ Text( title, style: Theme.of(context).textTheme.subtitle1!.copyWith( color: Colors.white, fontWeight: FontWeight.bold, fontSize: 20.0, ), ) ], ); } }