carousel icon indicating copy to clipboard operation
carousel copied to clipboard

carousel is not working for upgraded flutter in my project.Do anyone can help me......?

Open sortie opened this issue 6 years ago • 7 comments

From @ranjannisha on September 10, 2018 9:7

URL: https://pub.dartlang.org/packages/carousel I upgraded my flutter today and got an issue The current Dart SDK version is 2.1.0-dev.1.0.flutter-ccb16f7282.

Because breadfruit depends on carousel >=0.1.0 which requires SDK version <2.0.0, version solving failed.

Copied from original issue: dart-lang/pub-dartlang-dart#1593

sortie avatar Sep 10 '18 11:09 sortie

This should be fixed now, can you try it again? https://github.com/gbrvalerio/carousel/pull/12

brammittendorff avatar Oct 08 '18 08:10 brammittendorff

This should be fixed now, can you try it again? #12

For me still not working. The current Dart SDK version is 2.1.0-dev.3.1.flutter-760a9690c2.

jediyeti avatar Oct 10 '18 20:10 jediyeti

@jediyeti Did you try adding carousel in the pubspec.yml as:

  carousel:
    git:
      url: git://github.com/gbrvalerio/carousel.git

This will make sure you got the latest version with the update on pubspec.yml

brammittendorff avatar Oct 11 '18 08:10 brammittendorff

@brammittendorff

carousel: git: url: git://github.com/gbrvalerio/carousel.git

Didn't solve it for me. Just tried it and got:

The current Dart SDK version is 2.1.0-dev.3.1.flutter-760a9690c2.

Because my_app depends on carousel any which requires SDK version <2.0.0, version solving failed. pub upgrade failed (1)

toureholder avatar Oct 11 '18 09:10 toureholder

Did you try dependency_overrides already? https://github.com/flutter/flutter/issues/21599

dependency_overrides:
  carousel: "^0.1.0"

brammittendorff avatar Oct 11 '18 09:10 brammittendorff

Did you try dependency_overrides already? flutter/flutter#21599

dependency_overrides:
  carousel: "^0.1.0"

it works with this :)

toureholder avatar Oct 11 '18 10:10 toureholder

@jediyeti Did you try adding carousel in the pubspec.yml as:

  carousel:
    git:
      url: git://github.com/gbrvalerio/carousel.git

This will make sure you got the latest version with the update on pubspec.yml

This helped! Working even without dependency_overrides:

jediyeti avatar Oct 12 '18 07:10 jediyeti