Gerenciamento de estado refere-se a como um app gerencia e atualiza seus dados (estado) e reflete as mudanças na UI. Conforme os apps crescem, gerenciar o estado bem se torna importante, e o Flutter oferece mecanismos integrados (setState) e muitas bibliotecas (Provider, Riverpod, Bloc) para isso.
O que é estado
STATE = data that can change and affects the UI:
→ UI state: is a checkbox checked? what's in a text field? is a menu open?
→ app state: the logged-in user, items in a cart, fetched data
→ When state changes, the UI must UPDATE to reflect it.
