Pracoval som na Flutter projektu a snažil som sa pridať title
parameter AppBarTheme
ale dalo mi to chybu. Toto je kód:
@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,
)
)
)
)
);
}
Chyba bola: The named parameter 'title' isn't defined.
Ako to vyriešiť?