Open Johnishaa007 opened 2 days ago
Hi @Johnishaa007,
Thank you for bringing this issue to my attention!
I am already aware of the problem and will address it in the next update, which I plan to release next week.
Thank you for your patience.
Regards, Nikhil
Contact Details
johnnyripperak47@gmail.com
What happened?
I tried using this package in my project but some errors occurred so I forked and tried to understand using the example app given but still the same error persist. I have tried using alias but does not solve anything. I have also cleared pub cache and again tried
Errors in EXAMPLE APP : `The name 'CarouselController' is defined in the libraries 'package:flutter/src/material/carousel.dart (via package:flutter/material.dart)' and 'package:flutter_carousel_widget/src/helpers/flutter_carousel_controller.dart (via package:flutter_carousel_widget/flutter_carousel_widget.dart)'.
The name 'CarouselController' is defined in the libraries 'package:flutter/src/material/carousel.dart (via package:flutter/material.dart)' and 'package:flutter_carousel_widget/src/helpers/flutter_carousel_controller.dart (via package:flutter_carousel_widget/flutter_carousel_widget.dart)'. Try using 'as prefix' for one of the import directives, or hiding the name from all but one of the imports.
Errors in Project
C:/Users/hp/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_carousel_widget-2.2.0/lib/src/helpers/flutter_carousel_options.dart:5:1: Error: 'CarouselController' is imported from both 'package:flutter/src/material/carousel.dart' and 'package:flutter_carousel_widget/src/helpers/flutter_carousel_controller.dart'. import 'package:flutter_carousel_widget/src/helpers/flutter_carousel_controller.dart'; ^^^^^^^^^^^^^^^^^^ /C:/Users/hp/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_carousel_widget-2.2.0/lib/src/_expandable_carousel_widget.dart:208:13: Error: 'CarouselController' is imported from both 'package:flutter/src/material/carousel.dart' and 'package:flutter_carousel_widget/src/helpers/flutter_carousel_controller.dart'. : CarouselController() as CarouselControllerImpl; ^^^^^^^^^^^^^^^^^^ /C:/Users/hp/AppData/Local/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'. : CarouselController() as CarouselControllerImpl;
Version
2.2.0
What devices are you seeing the problem on?
Android, iPhone
OS
Android 12
Relevant log output
Code of Conduct