[SOLVED] Flutter Error: The getter ābody1ā isnāt defined for the class āTextThemeā ā place_picker.
Error SOLUTION Here is what I found on StackOverflow Source (Stackoverflow):- https://stackoverflow.com/questions/69312392/how-to-resolve-error-the-getter-body1-isnt-defined-for-the-class-texttheme To fix this issue you have to make some changes to Two files 2. C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/place_picker-0.9.19-nullsafety/lib/widgets/search_input.dart Changes to Done Edit the lines in the dart package like below and it will work. Of course, the author should do this, but you can edit it yourself as well rich_suggestion.dartOriginal: TextSpan(text: boldText, style: style.copyWith(color: Theme.of(context).textTheme.body1!.color)), New: TextSpan(text: boldText, style: style.copyWith(color: Theme.of(context).textTheme.bodyText1!.color)), search_input.dartOriginal: Icon(Icons.search, color: Theme.of(context).textTheme.body1!.color), New: Icon(Icons.search, color: Theme.of(context).textTheme.bodyText1!.color),
Read more