-
-
Notifications
You must be signed in to change notification settings - Fork 901
Error at Build Stage #487
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
Comments
same error , any solve ? |
Hi @abdalmonem If you need to use it urgently, you can try version |
Which Flutter version are you on? And do you include a custom chewie version? flutter_html depends on a recent chewie version which depends on a somewhat recent Flutter version. |
same error! ../../../.pub-cache/hosted/pub.flutter-io.cn/chewie_audio-1.1.1/lib/src/chewie_player.dart:99:17: Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'BuildContext'.
- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../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(_ChewieAudioControllerProvider) as _ChewieAudioControllerProvider;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.flutter-io.cn/chewie_audio-1.1.1/lib/src/chewie_player.dart:99:17: Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'BuildContext'.
- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../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(_ChewieAudioControllerProvider) as _ChewieAudioControllerProvider;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.flutter-io.cn/chewie_audio-1.1.1/lib/src/chewie_player.dart:99:17: Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'BuildContext'.
- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../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(_ChewieAudioControllerProvider) as _ChewieAudioControllerProvider;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I used version |
Thanks for the reply @erickok I use:
I did not install a custom version of
|
I think chewie is incompatible with flutter 1.26. I'll see if I can check that. But it'll be tomorrow at the earliest. |
Hmm 1.26 is not released yet, is it? I am a bit hesitant to upgrade my local Flutter to 1.26 just to test this. I will try to do so in due time (or try to set up a separate Flutter install). |
@erickok Chewie_audio is incompatible with 1.26. (I'm using it 1.26) ~/.pub-cache/hosted/pub.dartlang.org/chewie_audio-1.1.1 ⮀ flutter --version
Flutter 1.26.0-2.0.pre.343 • channel master • https://github.com/flutter/flutter.git There is a pull request fixing the issue on chewie_audio so it will be working on flutter 1.26. Sub6Resources/chewie_audio#10 Would be nice if this fix is applied to chewie_audio so my builds on 1.26 dosen't fail anymore :) |
Looks like Sub6Resources/chewie_audio#10 has already been merged but they haven't created a new release yet. Will we need a new release of flutter_html as well once they have theirs? Thank you! |
chewie_audio 1.1.2 was released, so I'll close this, but see #528 for a discussion on other work required to be compatible with Flutter 1.26. |
Error Running
Hi, I just installed the latest version of this package
1.1.1
, and the build step fails with the following error below when I try to run flutter.Error
Use Case
I tried out some of the older versions and found out that
0.11.1
works. Perhaps there are some configuration steps I am missing? Any help will be appreciated.Other Info
Last Working Version:
0.11.1
Flutter Channel:
master
Flutter version:
1.26.0-2.0.pre.283
Dart Version:
2.12.0
The text was updated successfully, but these errors were encountered: