I have a screen that I'd put all body in an Obx , I have a widget that has a parameter named activeIndex like this
AnimatedSmoothIndicator(
activeIndex: homeController.carouselPage.value,
count: homeController.posts[index].images.length,
effect: WormEffect(),
),
carouselPage parameter give it's value in controller like this
RxInt carouselPage = 0.obs;
SetCarouselIndex(int index) {
carouselPage.value = index;
}
SetCarouselIndex fires and the value changes but the UI not change . What is the problem ?