import 'package:flutter/material.dart'; class AboutPage extends StatefulWidget { const AboutPage({super.key}); final String title = "about"; @override State createState() => _AboutPage(); } class _AboutPage extends State { @override Widget build(BuildContext context) { return Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ const Text( 'You have pushed the button this many times:', ), Text( 'test', style: Theme.of(context).textTheme.headlineMedium, ), ], ), ); } }