Skip to content

Commit 6a9923f

Browse files
Apply suggestions from code review
Co-authored-by: pinkeshmars <[email protected]>
1 parent 3d8c3ba commit 6a9923f

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

docs/resources/control-flow/functions/action-blocks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ Usually, you will see a dropdown to choose between App Level, Page Level, or Com
3030
### Input Parameters
3131

3232
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
3434
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.
3535

3636
For example, here is a small demo where we create an Action Block with an input parameter.
3737

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.
3939

4040
<div style={{
4141
position: 'relative',

docs/resources/control-flow/functions/action-flow-editor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ one to complete.
9696
following tasks to proceed without waiting for them to finish.
9797
:::
9898

99-
### Creating An Action
99+
### Creating Action
100100

101101
If there is no initial action or if there is an action and you want to add another one and press the
102102
plus icon, the following options will be available:
@@ -109,7 +109,7 @@ plus icon, the following options will be available:
109109
boolean expression.
110110
3. **Add Loop**: Adds a loop flow that contains an input boolean expression and an action flow. The
111111
actions within the loop will be executed repeatedly as long as the expression evaluates to true (
112-
similar to a while loop).
112+
similar to a while loop).
113113
4. **Add Parallel**: Adds two action flow branches that will be executed in parallel.
114114
5. **Paste Action(s)**: Allows you to paste actions previously copied to the clipboard.
115115

docs/resources/control-flow/functions/control-flow-actions/concepts.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ these evaluations, different logic sequences are executed.
2323

2424
The primary conditional statements are `if`, `if-else`, and `else`.
2525

26-
- **`if` Statement:**
26+
- **`if` Statement:** The if statement evaluates a condition and executes a block of code if the condition is true.
2727

2828
The if statement evaluates a condition and executes a block of code if the condition is true.
2929

@@ -84,12 +84,12 @@ In FlutterFlow, you can implement conditional logic in two primary ways:
8484
Example: If the user clicks a button and a form is valid, navigate to the next screen; otherwise, show an error message.
8585

8686
:::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.
8888
:::
8989

9090
## Sequential vs Parallel Logic Flow
9191

92-
- **Sequential Logic Flow**
92+
- **Sequential Logic Flow**:
9393
Actions are executed **one after the other**. Each action waits for the
9494
previous one to complete before starting. This is useful for tasks that depend on the outcome of previous actions.
9595

@@ -164,5 +164,5 @@ To ensure proper execution, make only those actions non-blocking whose subsequen
164164
| **Only asynchronous** functions can be made non-blocking. | **Both asynchronous and synchronous** functions can be included in parallel actions. |
165165
| 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. |
166166
| 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. |
168168

docs/resources/control-flow/functions/overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ app responds to user inputs and events. Here are some key elements:
1818
content based on their authentication status.
1919

2020
* **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.
2222
This is useful for tasks like iterating through a list of items or retrying a failed operation.
2323

2424
* **Event Handling:**
@@ -27,7 +27,7 @@ app responds to user inputs and events. Here are some key elements:
2727
Understanding how to handle such events effectively ensures that your app reacts appropriately to
2828
user interactions.
2929

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
3131
responds to user actions and interacts with data. This could include:
3232

3333
* **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
6262
* **[Built-in Utility Functions](built-in-functions.md):** Functions that perform general utility
6363
tasks, such as
6464
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.
6666

67-
* **[Actions](actions)** : Sequence of Logic performed in response to user interactions:
67+
* **[Actions](actions):** Sequence of Logic performed in response to user interactions:
6868
* **Updating State Variables:** Functions that modify the current state or data of the app,
6969
page, or
7070
component.

0 commit comments

Comments
 (0)