You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a FlutterCarouselController in a parent widget, if the child FlutterCarousel widget is unmounted and startAutoPlay() is called, it leads to an unmounted error. Additionally, checking controller.ready still returns true. The _FlutterCarouselState should check its mounted state before interacting with the controller and properly dispose of it when the widget is unmounted.
Steps to Reproduce:
Create a parent widget with a FlutterCarouselController.
In the child widget, use FlutterCarousel with this controller.
Unmount the child widget while the carousel is running.
Call startAutoPlay() on the controller.
The unmounted error occurs because the child widget is no longer in the widget tree.
Description:
When using a
FlutterCarouselController
in a parent widget, if the childFlutterCarousel
widget is unmounted andstartAutoPlay()
is called, it leads to an unmounted error. Additionally, checkingcontroller.ready
still returnstrue
. The_FlutterCarouselState
should check itsmounted
state before interacting with the controller and properly dispose of it when the widget is unmounted.Steps to Reproduce:
FlutterCarouselController
.FlutterCarousel
with this controller.startAutoPlay()
on the controller.Version
^3.1.0
What devices are you seeing the problem on?
Android
OS
Android API 35
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: