Error when run code
Closed this issue · 2 comments
nvThanh commented
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 commented
robert-virkus commented
This should now we be resolved