Search code examples
flutterdartflutter-animationbloccubit

Can Bloc be used in StatefullWidget to use SingleTickerProviderStateMixin? (I'm kinda new)


I'm using a TabBarController and as u know we should extend SingleTickerProviderStateMixin which is available only for StatefullWidget..

I'm using Bloc in my app so I can optimize the performance.


Solution

  • Absolutely, you can accomplish this using Bloc State Management if you want.

    And also there is a full implementation of Tabbar with Bloc in this link: https://github.com/felangel/bloc/issues/549