Bir Flutter projesi üzerinde çalışıyordum ve eklemeye çalıştım title
parametre için AppBarTheme
ama bu bana bir hata verdi. Bu kod:
@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,
)
)
)
)
);
}
Hata şuydu:: The named parameter 'title' isn't defined.
Bunu nasıl çözebilirim?