computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
1.3 KiB
16 lines
1.3 KiB
# State Management |
|
|
|
State management in Flutter refers to the process of managing and updating the data or state of a Flutter application. In Flutter, the state of the widgets can change dynamically, for example, when a user interacts with the application. The state management techniques in Flutter include: |
|
|
|
- ScopedModel: a third-party state management solution that uses a centralized model to manage the state. |
|
- Provider: a lightweight solution that allows widgets to access the state with minimal boilerplate code. |
|
- BLoC (Business Logic Component): a state management technique that uses streams and reactive programming to manage the state. |
|
- Redux: a state management solution inspired by the Redux library in React. |
|
- InheritedWidget: a built-in widget that allows the state to be passed down the widget tree. |
|
|
|
The choice of state management technique depends on the complexity and size of the project. For smaller projects, Provider or InheritedWidget may be sufficient, while larger projects may require a more robust solution like ScopedModel or Redux. |
|
|
|
Learn more from the following resources: |
|
|
|
- [State management in Flutter](https://docs.flutter.dev/development/data-and-backend/state-mgmt) |
|
- [Intro to State Management](https://docs.flutter.dev/development/data-and-backend/state-mgmt/intro) |