Closed esaiaswestberg closed 4 months ago
Source for old theme values: https://web.archive.org/web/20210625133010/https://api.flutter.dev/flutter/material/TextTheme-class.html
When will this change go live? I am unable to use the lib because of this error.
The Issue
In a recent update of the Flutter framework, older TextTheme styles, such as headline6, became deprecated and are replaced by new names for the styles.
When trying to build a flutter project which uses _easy_searchbar one now encounters the following error message:
This indicated that the default titleTextStyle does not work as it is null as of the new version of the framework.
Proposed solution
Using one of the new TextTheme styles. My proposal would be to use titleLarge as it matches the old headline6.
As you can see, they are identical and therefor it will not cause any issues for any future users or any existing users.