DavideBelsole / great_list_view

pub.dev library for flutter
MIT License
41 stars 22 forks source link

Error on compile #22

Closed bondarevdev closed 1 year ago

bondarevdev commented 2 years ago

I am getting error on compile app with great_list_view.

[+8433 ms] ../../.pub-cache/hosted/pub.dartlang.org/great_list_view-0.1.4/lib/src/dispatcher.dart:160:32: Error: Expected 6 type arguments.
[        ]       _cancelable = Executor().execute<T, T, AnimatedListDiffBaseComparator<T>,
[        ]                                ^
[+2765 ms] ../../.pub-cache/hosted/pub.dartlang.org/great_list_view-0.1.4/lib/src/dispatcher.dart:160:32: Error: Expected 6 type arguments.
[        ]       _cancelable = Executor().execute<T, T, AnimatedListDiffBaseComparator<T>,
[        ]                                ^

flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.3, on Ubuntu 22.04.1 LTS 5.15.0-48-generic, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2021.3)
[✓] VS Code
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!

Seems related to new work_manager package.

mregnauld commented 2 years ago

I have the exact same problem.

Here is the workaround I use for the moment (thanks @rupinderjeet) : In pubspec.yaml, here is what I do:

dependencies:
  great_list_view:
    git:
      url: https://github.com/rupinderjeet/great_list_view.git
      ref: fix/widgetsbindinginstance
DavideBelsole commented 1 year ago

try the new version 0.2.0

mregnauld commented 1 year ago

It works now. Thanks!