-
Notifications
You must be signed in to change notification settings - Fork 220
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
Bug: Not compiling at Flutter Master after latest update #151
Comments
Hi @brunodmn Thanks for this. We only test on flutter stable at the moment. Gavin. |
So when master becomes stable, we'll need to update our helper. Will leave open and take look when I can. Thanks for the report. What features are you using from master anyway? |
Hi @ghenry , Thank you for quick reply and congrats for the nice job and to share it with us. I am working on a Material You project and master is quite ahead. I tried to change to stable bug got a bit uglier in design. Thanks |
No worries. I'm just helping maintain, not the creator :)
I'll have a look, but a fix must be backward compatible, so it depends...
Will let you know.
Thanks.
|
I'm experiencing the issue in the stable version of Flutter. It occurs if the app project is using package:collection 1.17.0. A quick solution is to using collection 1.16.0. |
So it's this: in latest dart collections, which I guess @Pyozer added because it wasn't there in stable. |
I'll commit a change after testing again on stable, but Flutter master is working now. Updated our code to pick the extension: Gavin. |
That should be you now @brunodmn I'll get a release prepared, but you might need to run from git for now. |
Prepping a new release for you @brunodmn |
Worked! |
Describe the bug
It just stopped compiling after latest Flutter Master upgrade
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
flutter channel master
andflutter upgrade
Additional context
Logs
../../.pub-cache/hosted/pub.dev/introduction_screen-3.1.0/lib/src/introduction_screen.dart:505:35: Error: The method 'elementAtOrNull' is defined in multiple extensions for 'List' and neither is more specific. - 'List' is from 'dart:core'. - 'ScrollController' is from 'package:flutter/src/widgets/scroll_controller.dart' ('../flutter/packages/flutter/lib/src/widgets/scroll_controller.dart'). Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope. ?.elementAtOrNull(index), ^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/collection-1.17.0/lib/src/list_extensions.dart:271:6: Context: This is one of the extension members. E? elementAtOrNull(int index) => (index < length) ? this[index] : null; ^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/introduction_screen-3.1.0/lib/src/helper.dart:6:6: Context: This is one of the extension members. T? elementAtOrNull(int index) { ^^^^^^^^^^^^^^^ Target kernel_snapshot failed: ExceptionFAILURE: Build failed with an exception.
The text was updated successfully, but these errors were encountered: