Closed baptistesx closed 1 year ago
This isn't a problem in the package, since it's safely guarded here https://github.com/Bdaya-Dev/circular-widgets/blob/master/lib/src/circular_widgets.dart#L31
I think the problem is in your code, you have to rebuild the CircularWidgets
widget when the length changes (using Provider or StreamBuilder for example)
It breaks when itemsLength == 0, because it goes into itemBuilder, and then try to access index which doesn't exist...