Bits of Flutter

Hi, I'm Arturo Grau

I build multiplatform apps and small software products with a focus on clean, scalable architecture. I'm passionate about product philosophy, moving fast, staying lean, and keeping code simple but strong.

Featured

Ghost State in BLoC 👻

State Management··6 min read

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 →Read More →

When BLoCs Start Talking Too Much 🧩

Architecture··10 min read

(and how the Mediator Pattern can save you) Sometimes in a Flutter app, one BLoC starts depending on another. Maybe the profile screen needs the current user ID from the AuthBloc. So we inject one BLoC into the other. It works. Until it doesn't.

Read More →Read More →

Topics

Latest

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

Global UI with Overlays

UI

Ever needed to display a widget above all other content? Flutter's Overlay widget is your secret weapon for custom notifications, persistent tooltips, and truly floating elements.

Read More

Clean UI with Widget Extensions

UI

Extension methods offer a powerful way to encapsulate common UI patterns, making your widget trees much cleaner and more readable. Instead of wrapping every widget, you can chain these extensions for a more fluent API.

Read More