-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
007a54b
commit 5611b5b
Showing
4 changed files
with
52 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: State Management | ||
description: An overview of state management in FlutterFlow | ||
--- | ||
|
||
State management is a crucial concept focused on maintaining and controlling the *state* of an application. Simply put, it involves monitoring the changes within your app and updating the user interface to reflect these changes. | ||
|
||
You can think of the UI as a function of your state variables, where changes in these variables directly influence what the UI displays. | ||
|
||
In FlutterFlow, there are a few types of state variables that you can create: | ||
|
||
|
||
![App State is shared across multiple pages in the application. Component State is specific to a component. Page State is shared across widgets on the page.](<state_management_overview.png>) | ||
|
||
|
||
- State variables are themselves variables - meaning they have a *name* and a *data type*. | ||
- They also have an initial value that is set when you create the variable. | ||
- Once you create a state variable, it's value can be used to change the configuration of widget properties - like any other variable. | ||
- You can update the value of state variables using the *Update State Variable* action. | ||
|
||
You can learn more about state management from this video: | ||
<div class="video-container"><iframe src="https://www.youtube.com/watch?v=jD6L4xjYjJA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div> | ||
|
||
|
||
|
||
<!-- TO DO: link to variables section + action secton --> | ||
|
||
<!-- TO DO: add link to app, page and component state variable sections -- and also link to something about widget state in built in widget section --> | ||
|
||
|
||
|
||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters