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

inheritFromWidgetOfExactType #15

Closed
aristidenholle opened this issue Mar 6, 2021 · 1 comment
Closed

inheritFromWidgetOfExactType #15

aristidenholle opened this issue Mar 6, 2021 · 1 comment

Comments

@aristidenholle
Copy link

Hello at you , when i try to use flutter_styled_toast in flutter 2.0 i got

/C:/Flutter%20v2.0/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_styled_toast-1.3.0/lib/src/styled_toast.dart:1880:15: Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'BuildContext'.
 - 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('/C:/Flutter%20v2.0/flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'inheritFromWidgetOfExactType'.
      context.inheritFromWidgetOfExactType(_StyledToastTheme);
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Repository owner locked and limited conversation to collaborators Mar 6, 2021
Repository owner unlocked this conversation Mar 6, 2021
@JackJonson
Copy link
Owner

Using the latest version 1.5.2+3 will solve this.

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

2 participants