Closed Sreejith93 closed 2 years ago
@blackmann same error here
any solution please
Same error
same error here
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),
same error
same error....
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.
Fixed in #67
/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.
Where: Script 'E:\Andriod\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1005
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1m 8s