nixrajput / flutter_carousel_widget

A customizable carousel slider widget in Flutter which supports infinite scrolling, auto scrolling, custom child widget, custom animations and built-in indicators.
https://pub.dev/packages/flutter_carousel_widget
MIT License
27 stars 14 forks source link

[Bug]: Next Flutter add a Carousel Widget #42

Closed patou closed 1 week ago

patou commented 1 week ago

Contact Details

No response

What happened?

Flutter works to add a new Carousel widget, and it's integrated in the main channel.

https://github.com/flutter/flutter/pull/148094

When compile our application with the flutter main channel, the compile didn't works because two CarouselController now exist, for our code we can updated with :

import 'package:flutter/material.dart' hide CarouselController;

But there are errors in this lib flutter_carousel_widget.

There are 4 files with erros :

Version

2,2,

What devices are you seeing the problem on?

iPhone

OS

Flutter chanel main 3.23.0-13.0.pre.212

Relevant log output

Error (Xcode): ../../../../.pub-cache/hosted/pub.dev/flutter_carousel_widget-2.2.0/lib/src/helpers/flutter_carousel_options.dart:88:9: Error: 'CarouselController' is imported from both 'package:flutter/src/material/carousel.dart' and 'package:flutter_carousel_widget/src/helpers/flutter_carousel_controller.dart'.

Error (Xcode): ../../../../.pub-cache/hosted/pub.dev/flutter_carousel_widget-2.2.0/lib/src/_flutter_carousel_widget.dart:149:13: Error: 'CarouselController' is imported from both 'package:flutter/src/material/carousel.dart' and 'package:flutter_carousel_widget/src/helpers/flutter_carousel_controller.dart'.

Code of Conduct

InstantlyMoist commented 1 week ago

Opened a PR for this, hopefully gets accepted soon :D

nixrajput commented 1 week ago

Thank you for the PR.

I will accept it after review and release an update as soon as possible.