Hi Everyone,
I’m building my first app and need some guidance on filtering based on a Carousel widget. I’ve implemented a State that updates whenever the user navigates within the carousel. The State works perfectly—it updates from Firebase and applies the filter correctly as soon as the user interacts with the carousel.
However, I’m facing an issue on page load. Since the user hasn’t interacted with the carousel yet, the State is still empty. I tried initializing the State after my Firebase query collection on page load, but then I lose the ability to select items from the collection for the carousel.
Does anyone know how I can fix this or if there’s something I’m overlooking?
Thanks in advance for your help!