flutter_carousel_slider icon indicating copy to clipboard operation
flutter_carousel_slider copied to clipboard

Unsupported operation: Infinity or NaN toInt

Open aggeloskoutanis opened this issue 1 year ago • 0 comments

Hello everyone, I am facing the following issue while I am using a CarouselSlider.builder with autoPlay == true. I think the problem is caused due to an async operation in the initState of CarouselSliderState that has to do with timer when using autoPlay feature. Did anyone had the same issue?

Unsupported operation: Infinity or NaN toInt
carousel_slider.dart in CarouselSliderState.getTimer.<fn> within carousel_slider
In App
zone.dart in _rootRunUnary at line 1399
System
zone.dart in _CustomZone.runUnary at line 1300
System
zone.dart in _CustomZone.runUnaryGuarded at line 1209
System
zone.dart in _CustomZone.bindUnaryCallbackGuarded.<fn> at line 1246
System
zone.dart in _rootRunUnary at line 1407
System
zone.dart in _CustomZone.runUnary at line 1300
System
zone.dart in _CustomZone.bindUnaryCallback.<fn> at line 1230
System
timer_impl.dart in _Timer._runTimers at line 398
System
timer_impl.dart in _Timer._handleMessage at line 429
System
isolate_patch.dart in _RawReceivePortImpl._handleMessage at line 192

aggeloskoutanis avatar Apr 01 '23 08:04 aggeloskoutanis