Bits of Flutter

#Best Practices

2 posts

BLoC Powered Components

Architecture

Don't make one single BLoC for the whole page. Follow the Single Responsibility Principle and split UI components into small features with their own BLoCs.

Read More

Ghost State in BLoC 👻

State Management

Sometimes your BLoC looks fine, but part of its logic lives outside the state hidden in private fields that never get emitted. That's ghost state. In this post, I show a real example of how it happens, and how to fix it so your state tells the whole story.

Read More