skip to Main Content

'CarouselController' is imported from both 'package:carousel_slider/carousel_controller.dart' and 'package:flutter/src/material/carousel.dart'

I have a flutter code where the first widget is the Carousel Slider. It was running fine till I updated flutter. Now it shows the following error /C:/Users/Family/AppData/Local/Pub/Cache/hosted/pub.dev/carousel_slider-4.2.1/lib/carousel_slider.dart:9:1: Error: 'CarouselController' is imported from both 'package:carousel_slider/carousel_controller.dart' and 'package:flutter/src/material/carousel.dart'. import 'carousel_controller.dart'; ^^^^^^^^^^^^^^^^^^…

VIEW QUESTION
Back To Top
Search