You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/control-flow/functions/action-blocks.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,12 +30,12 @@ Usually, you will see a dropdown to choose between App Level, Page Level, or Com
30
30
### Input Parameters
31
31
32
32
Action Blocks have access to the state variables available in the same scope as the Action Block
33
-
(for e.g Page State variables can be accessed from Page Level Action Blocks). However, there
33
+
(for e.g., Page State variables can be accessed from Page Level Action Blocks). However, there
34
34
will be times when you may need to input some parameters for the Action Block to perform its logic. These are called **Action Parameters**, and they can be added from the Action Flow Editor when you create a new Action.
35
35
36
36
For example, here is a small demo where we create an Action Block with an input parameter.
37
37
38
-
n this example, we add an item to the wishlist of an e-commerce app. Let's say our local wishlist is saved in an App State variable called `localWishlist`, and we have a reusable Action Block called `addToWishlist` that takes an input parameter called productId and performs the actions to add it to the `localWishlist` object.
38
+
In this example, we add an item to the wishlist of an e-commerce app. Let's say our local wishlist is saved in an App State variable called `localWishlist`, and we have a reusable Action Block called `addToWishlist` that takes an input parameter called productId and performs the actions to add it to the `localWishlist` object.
Copy file name to clipboardExpand all lines: docs/resources/control-flow/functions/control-flow-actions/concepts.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ these evaluations, different logic sequences are executed.
23
23
24
24
The primary conditional statements are `if`, `if-else`, and `else`.
25
25
26
-
-**`if` Statement:**
26
+
-**`if` Statement:** The if statement evaluates a condition and executes a block of code if the condition is true.
27
27
28
28
The if statement evaluates a condition and executes a block of code if the condition is true.
29
29
@@ -84,12 +84,12 @@ In FlutterFlow, you can implement conditional logic in two primary ways:
84
84
Example: If the user clicks a button and a form is valid, navigate to the next screen; otherwise, show an error message.
85
85
86
86
:::info
87
-
Checkout the [**complete guide**](conditional-logic) here. Are you looking to learn about implementing conditional UI instead? Check out our **[Responsiveness 101](#)** guide instead.
87
+
Check out the [**complete guide**](conditional-logic) here. Are you looking to learn about implementing conditional UI instead? Check out our **[Responsiveness 101](#)** guide instead.
88
88
:::
89
89
90
90
## Sequential vs Parallel Logic Flow
91
91
92
-
-**Sequential Logic Flow**
92
+
-**Sequential Logic Flow**:
93
93
Actions are executed **one after the other**. Each action waits for the
94
94
previous one to complete before starting. This is useful for tasks that depend on the outcome of previous actions.
95
95
@@ -164,5 +164,5 @@ To ensure proper execution, make only those actions non-blocking whose subsequen
164
164
|**Only asynchronous** functions can be made non-blocking. |**Both asynchronous and synchronous** functions can be included in parallel actions. |
165
165
| Ideal for tasks where the result of the action is not immediately needed by the next action. | Ideal for independent tasks that can be executed simultaneously to improve efficiency. |
166
166
| Ensures the app remains responsive by not waiting for long-running tasks. | Helps in reducing overall execution time by performing multiple tasks concurrently. |
167
-
|**Example**: Fetching data in the background while allowing user interaction. |**Example**: Loading data from two APIs simulataneously to save time. |
167
+
|**Example**: Fetching data in the background while allowing user interaction. |**Example**: Loading data from two APIs simultaneously to save time. |
Copy file name to clipboardExpand all lines: docs/resources/control-flow/functions/overview.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ app responds to user inputs and events. Here are some key elements:
18
18
content based on their authentication status.
19
19
20
20
***Loops:**
21
-
Loops such as `for` and `while` allow your app to repeat a string of logic multiple times.
21
+
Loops such as `for` and `while` allow your app to repeat a sequence of logic multiple times.
22
22
This is useful for tasks like iterating through a list of items or retrying a failed operation.
23
23
24
24
***Event Handling:**
@@ -27,7 +27,7 @@ app responds to user inputs and events. Here are some key elements:
27
27
Understanding how to handle such events effectively ensures that your app reacts appropriately to
28
28
user interactions.
29
29
30
-
And **Logic** or **Functions** refer to the core operations and behaviors that determine how an app
30
+
**Logic** or **Functions** refer to the core operations and behaviors that determine how an app
31
31
responds to user actions and interacts with data. This could include:
32
32
33
33
***Business Logic:** This is the part of the app that manages the rules and processes of the real
@@ -62,9 +62,9 @@ There are different types of functions you can use in your app. Some examples in
62
62
***[Built-in Utility Functions](built-in-functions.md):** Functions that perform general utility
63
63
tasks, such as
64
64
formatting
65
-
data or performing calculations. In FlutterFlow, you can use Code Expression for simple data manipulation tasks or use the Combine Text built-in function to concatenate strings.
65
+
data or performing calculations. In FlutterFlow, you can use [Code Expression](#) for simple data manipulation tasks or use the Combine Text built-in function to concatenate strings.
66
66
67
-
***[Actions](actions)** : Sequence of Logic performed in response to user interactions:
67
+
***[Actions](actions):** Sequence of Logic performed in response to user interactions:
68
68
***Updating State Variables:** Functions that modify the current state or data of the app,
0 commit comments