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

Issue

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

Answered By – Nijat Namazzade

Answer Checked By – David Goodson (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *