State management म्हणजे अॅप त्याचा डेटा (state) कसा व्यवस्थापित करतो आणि अपडेट करतो आणि UI मध्ये बदल कसे प्रतिबिंबित करतो. जसजसे अॅप्स मोठे होतात, state चांगल्या प्रकारे व्यवस्थापित करणे महत्त्वाचे बनते, आणि Flutter त्यासाठी built-in mechanisms (setState) आणि अनेक libraries (Provider, Riverpod, Bloc) प्रदान करते.
State म्हणजे काय
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.
