Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter 3: ERROR: A value of type 'Widget' can't be assigned to a variable of type 'InheritedWidget'. #731

Closed
royacodes opened this issue May 14, 2022 · 7 comments

Comments

@royacodes
Copy link

recently, I update flutter to version 3 and can't build the app.
error below is generated:
^
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_gauges-
20.1.55/lib/src/linear_gauge/gauge/linear_gauge_scope.dart:40:10: Error: A value of type 'Widget' can't be assigned to a
variable of type 'InheritedWidget'.
- 'Widget' is from 'package:flutter/src/widgets/framework.dart'
- ('/C:/flutter_3.0.0/packages/flutter/lib/src/widgets/framework.dart').
- 'InheritedWidget' is from 'package:flutter/src/widgets/framework.dart'
- ('/C:/flutter_3.0.0/packages/flutter/lib/src/widgets/framework.dart').

@rsbthebest
Copy link

Plus 1 to this!

@cksdnr1
Copy link

cksdnr1 commented May 15, 2022

same to me

@SimonVillage
Copy link

As a quick fix change the type InheritedWidget to Widget in

/syncfusion_flutter_gauges-20.1.55/lib/src/linear_gauge/gauge/linear_gauge_scope.dart:40

@Yuvaraj-Gajaraj
Copy link
Contributor

Hi @royacodes,

Greetings from Syncfusion. We have already fixed the issue which occurred after upgrading the Flutter SDK version to 3.0.0. It will be rolled out in our next weekly patch release, which is expected by tomorrow, and we will update you once the patch gets rolled out. We appreciate your patience until then.

Regards,
Yuvaraj.

@royacodes
Copy link
Author

Thank you very much for your consideration.

@Yuvaraj-Gajaraj
Copy link
Contributor

Hi @royacodes,

Thanks for your patience. The issues with Flutter v3.0.0 have been fixed and rolled out in our weekly patch release. To avoid the issues, please upgrade our package to the latest version 20.1.56.

Regards,
Yuvaraj.

@royacodes
Copy link
Author

Hi @royacodes,

Thanks for your patience. The issues with Flutter v3.0.0 have been fixed and rolled out in our weekly patch release. To avoid the issues, please upgrade our package to the latest version 20.1.56.

Regards, Yuvaraj.

Many thanks for the prompt reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants