4inka / flutter_easy_search_bar

Other
13 stars 22 forks source link

The getter 'headline6' isn't defined for the class 'TextTheme'. #31

Open pierrecorsini opened 2 weeks ago

pierrecorsini commented 2 weeks ago
/C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/easy_search_bar-2.5.0/lib/easy_search_bar.dart:377:25: Error: The getter 'headline6' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline6'.
        theme.textTheme.headline6!.copyWith(color: foregroundColor);
                        ^^^^^^^^^
/C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/easy_search_bar-2.5.0/lib/easy_search_bar.dart:491:60: Error: The argument type 'TextStyle?' can't be assigned to the parameter type 'TextStyle' because 'TextStyle?' is nullable and 'TextStyle' isn't.
 - 'TextStyle' is from 'package:flutter/src/painting/text_style.dart' ('/E:/flutter/packages/flutter/lib/src/painting/text_style.dart').
                                                    style: titleTextStyle,
                                                           ^
Failed to compile application.

Errors running the repo example code.

Channel stable, 3.24.1

Supertommino commented 22 hours ago

Same problem