I was working on a Flutter project and I tried to add the title parameter to AppBarTheme but it gave me an error. This is the code:
@override Widget build(BuildContext context){ return MaterialApp( theme: ThemeData( primarySwatch: Colors.green, accentColor: Colors.pinkAccent, fontFamily: 'Quicksand', appBarTheme: AppBarTheme(textTheme: ThemeData.light().textTheme.copyWith( title: const TextStyle( fontFamily: 'Quicksand', fontSize: 20, ) ) ) ) ); } The error was: The named parameter 'title' isn't defined. How can I solve this?