Links

Local State

Local State allows you to store values in a variable. Instead of using a hard-coded value, you can use a Local State to reference a value that might change over time. It can be passed as arguments to functions, widgets, and actions allowing you to manipulate data and control the flow of your app.
For example, you can use it to store user-configurable settings such as font size or color scheme, form data, and currently selected tab index.
Using Local State effectively, you can create a more modular, maintainable, and flexible app that can adapt to changing requirements and data.

Types of Local State

Here are the types of Local States available in FlutterFlow:
  • ​App State: The App State variable can be accessed and modified from any part of your app.
  • ​Page State: The Page State variable is limited to being accessed and modified within the specific page in which it is defined.
  • ​Component State: The Component State variable can be accessed and modified only within the Component.