serenader2014 / flutter_carousel_slider

A flutter carousel widget, support infinite scroll, and custom child widget.
https://pub.dev/packages/carousel_slider
MIT License
1.56k stars 523 forks source link

error if enableInfiniteScroll: false, #383

Closed laith261 closed 1 year ago

laith261 commented 1 year ago

if i put enableInfiniteScroll: false, i get this error when i reach last image or first image

======== Exception caught by gesture =============================================================== The following assertion was thrown while handling a gesture: 'package:flutter/src/widgets/overscroll_indicator.dart': Failed assertion: line 243 pos 14: 'notification.metrics.axis == widget.axis': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause. In either case, please report this assertion by filing a bug on GitHub: https://github.com/flutter/flutter/issues/new?template=2_bug.md