I am using a carousel in FlutterFlow to display images fetched from a Supabase table. Each image in the table has an associated delay value (in milliseconds), which I want to apply dynamically as the carousel transitions between images.
To achieve this, I:
Created a Component State Variable named
delay
to store the delay value for the current image.Used the onPageChange event of the carousel to update the
delay
variable with the delay value of the currently displayed image.
However, even though the delay
variable updates correctly with each page change, the carousel continues to use the delay value of the first image for all subsequent transitions. This results in inconsistent behavior when different images should have varying delays.