Flutter – TabController.animateTo not being called in ref.listen of Riverpod
I created a StateProvider: final tabsStateProvider = StateNotifierProvider<TabsProvider, List<TabClass>>( (ref) => TabsProvider()); and I'm listening to it with ref.listen: Inside ref.listen, when the state changes, I'm calling tabController.animateTo(1); but it's not having any effect on the tabs. I'm not sure…