state
3
setStatebuildUI
state.dartdart
// setState for local bits.
// Cubit for anything the rest of the app
// needs to see: themes, auth, current user.
// Bloc when you want a paper trail of
// events for easier testing or replay.
//
// All three coexist in one app.
//
// Riverpod and Provider also work. I
// picked Bloc because the events-in,
// states-out shape stays clean as the
// app grows.