나는 작업에 떨림 프로젝트와 나도 추가 title
매개 변수 AppBarTheme
하지만 그것이 나에게 오류가 있습니다. 이 코드:
@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 named parameter 'title' isn't defined.
어떻게 해결할 수 있는 이?