blackmann / locationpicker

Location picker for Flutter.
Other
167 stars 159 forks source link

after upgrade flutter 2.2.3 to 2.5.0 i got this error #63

Closed Sreejith93 closed 2 years ago

Sreejith93 commented 2 years ago

/E:/Andriod/flutter/.pub-cache/hosted/pub.dartlang.org/place_picker-0.9.19-nullsafety/lib/widgets/rich_suggestion.dart:35:89: Error: The getter 'body1' isn't defined for the class 'TextTheme'.

FAILURE: Build failed with an exception.

BUILD FAILED in 1m 8s

lucasjinreal commented 2 years ago

@blackmann same error here

Sreejith93 commented 2 years ago

any solution please

RockNav24 commented 2 years ago

Same error

alishe79 commented 2 years ago

same error here

RoRoStudio commented 2 years ago

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.dart Original: 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.dart Original: Icon(Icons.search, color: Theme.of(context).textTheme.body1!.color),

New: Icon(Icons.search, color: Theme.of(context).textTheme.bodyText1!.color),

image

zotovy commented 2 years ago

same error

negiot commented 2 years ago

same error....

SushantSinghRajput03 commented 2 years ago

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.dart Original: 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.dart Original: Icon(Icons.search, color: Theme.of(context).textTheme.body1!.color),

New: Icon(Icons.search, color: Theme.of(context).textTheme.bodyText1!.color),

This works for me. Thanks for sharing.

blackmann commented 2 years ago

Fixed in #67