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

Error when run code #71

Closed
nvThanh opened this issue Nov 11, 2022 · 2 comments
Closed

Error when run code #71

nvThanh opened this issue Nov 11, 2022 · 2 comments

Comments

@nvThanh
Copy link

nvThanh commented Nov 11, 2022

I got this error when i try to download and run code,
Please tell me how to fix

../flutter/.pub-cache/hosted/pub.dartlang.org/introduction_screen-3.0.2/lib/src/introduction_screen.dart:434:35: Error: The method 'elementAtOrNull' is defined in multiple extensions for 'List<ScrollController?>' 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),
    ^^^^^^^^^^^^^^^
    ../flutter/.pub-cache/hosted/pub.dartlang.org/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;
    ^^^^^^^^^^^^^^^
    ../flutter/.pub-cache/hosted/pub.dartlang.org/introduction_screen-3.0.2/lib/src/helper.dart:6:6: Context: This is one of the extension members.
    T? elementAtOrNull(int index) {
    ^^^^^^^^^^^^^^^
@nvThanh
Copy link
Author

nvThanh commented Nov 11, 2022

Screenshot 2022-11-11 at 9 59 29 AM

robert-virkus added a commit that referenced this issue Nov 19, 2022
@robert-virkus
Copy link
Member

This should now we be resolved

robert-virkus pushed a commit that referenced this issue Feb 25, 2023
robert-virkus added a commit that referenced this issue Feb 25, 2023
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