mitesh77/Best-Flutter-UI-Templates

TextTheme error

ldb-github opened this issue · 1 comments

In file app_theme.dart, the code:
static const TextTheme textTheme = TextTheme( headline4: display1, headline5: headline, headline6: title, subtitle2: subtitle, bodyText2: body2, bodyText1: body1, caption: caption, );
The named parameter 'headline4' isn't defined.
The named parameter 'headline5' isn't defined.
The named parameter 'headline6' isn't defined.
The named parameter 'subtitle2' isn't defined.
The named parameter 'bodyText2' isn't defined.
The named parameter 'bodyText1' isn't defined.

the same error also in files: design_course_app_theme.dart, fintness_app_theme.dart, hotel_app_theme.dart

My Flutter version: 1.12.13+hotfix.9

I updated flutter to 1.20.2, the problem is fixed.