Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
bb5a02d
Keyboard Shortcut (#144)
pinkeshmars Sep 23, 2024
0d8f4fe
Added branch permission and commits section
pinkeshmars Sep 23, 2024
2cc85e6
Making a few modifications
Sep 23, 2024
d5de456
Fixing some outdated information and rewording
leighajarett Sep 23, 2024
6c01a71
Added dev environments
pinkeshmars Sep 9, 2024
77764b3
added note
pinkeshmars Sep 10, 2024
a93fa4e
Content correction
PoojaB26 Sep 10, 2024
0dc8581
Updated as per review comments
pinkeshmars Sep 11, 2024
3198605
Added environment variables
pinkeshmars Sep 20, 2024
83c07c7
Making some changes
leighajarett Sep 23, 2024
ea6e4c6
One more change based on pooja feedback
leighajarett Sep 23, 2024
f10eb29
Libraries (#141)
pinkeshmars Sep 24, 2024
ecee50a
Widget builder as parameter (#142)
pinkeshmars Sep 24, 2024
c2392dd
Added libraries content
pinkeshmars Sep 13, 2024
1a9cdbc
add note
pinkeshmars Sep 13, 2024
1d21e58
added dependency conflicts section
pinkeshmars Sep 19, 2024
d9a2385
minor fix
pinkeshmars Sep 19, 2024
b8649ba
Update docs/resources/libraries.md
pinkeshmars Sep 24, 2024
7e648db
Apply suggestions from Pooja's review
pinkeshmars Sep 24, 2024
27197aa
Address review comments
pinkeshmars Sep 24, 2024
19b3ef9
Move libraries to projects
PoojaB26 Sep 24, 2024
c300a9c
making some modifications
leighajarett Sep 24, 2024
42a6faf
Moving built in widgets to widget section
leighajarett Sep 24, 2024
e1cba94
Making adjustments to widget builder as parameter
leighajarett Sep 24, 2024
beeb7af
Mentioning commits in versions page
leighajarett Sep 24, 2024
2e833ab
Adding shotcut info
leighajarett Sep 24, 2024
5a256e6
Fix name
leighajarett Sep 24, 2024
c7a3e0d
update action flow editor visuals
pinkeshmars Sep 3, 2024
52f0b6c
added action triggers
pinkeshmars Sep 5, 2024
a3f7210
added arcade for example 3rd step
pinkeshmars Sep 6, 2024
3ff945e
added lifecycle stages
pinkeshmars Sep 6, 2024
26554e8
Fixed review comments
pinkeshmars Sep 7, 2024
e2e5d53
Formatting fix
PoojaB26 Sep 9, 2024
0150611
Formatting fixes
PoojaB26 Sep 10, 2024
6bf6dec
added lifecycle for tap gesture
pinkeshmars Sep 11, 2024
49d6f1a
Making adjustements to gesture detector stuff
leighajarett Sep 24, 2024
f1f51e0
Specify Firestore collections
PoojaB26 Sep 24, 2024
267e37b
fix slug for widget builder
PoojaB26 Sep 24, 2024
99da452
fix admonition
PoojaB26 Sep 24, 2024
2312f2e
minor corrections
PoojaB26 Sep 24, 2024
47e618e
fix slug for dev envs
PoojaB26 Sep 24, 2024
be7d67b
fix slug for dev envs
PoojaB26 Sep 24, 2024
aee585c
fix slug for dev envs
PoojaB26 Sep 24, 2024
f9b17c7
Merge remote-tracking branch 'origin/ffdc-features' into ffdc-features
PoojaB26 Sep 24, 2024
935fb7d
Spellings
PoojaB26 Sep 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 43 additions & 42 deletions docs/resources/control-flow/functions/action-flow-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Designing interactivity involves two steps:
1. Listening for Interaction (**Action Triggers**)
2. Responding to Interaction (**Actions**)

Action Triggers represent a specific event, while Actions are functions executed in response to the
**Action Triggers** represent a specific event, while **Actions** are functions executed in response to the
triggered event. Common triggers are:

- **On Tap**: Triggered on tapping on a widget or specifically buttons.
Expand All @@ -30,20 +30,45 @@ Actions are tasks or operations that are performed in response to an event detec
The Action Flow Editor is a visual, node-based editor used to configure the functions that run in
response to a trigger. This editor simplifies the process of creating and managing business logic.

![Action Flow Editor](../../../../static/img/action-flow-editor.avif)
![Action Flow Editor](img/actions.avif)

### Action Triggers

The **Action Triggers** toolbar, located at the top of the editor, displays a list of available
triggers. Each trigger has its own separate node editor, allowing you to create distinct logic
flows for different events. When you switch between triggers, the node editor updates to display
the logic specific to the selected action trigger.
When you open the Action Flow Editor, no triggers are added by default. To add a trigger, simply search for and select the desired one from the available options. The Action Triggers bar, located at the left of the editor, displays all added triggers.

![Triggers](../../../../static/img/action-flow-editor-triggers.avif)
:::info
To learn more about **Action Triggers** and its types, refer [**here**](action-triggers.md).
:::

<div style={{
position: 'relative',
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
height: 0,
width: '100%'}}>
<iframe
src="https://demo.arcade.software/2kuQfhvjyPnW8PvbsaUw?embed&show_copy_link=true"
title=""
style={{
position: 'absolute',
top: 0,
left: 0,
width: '100%',
height: '100%',
colorScheme: 'light'
}}
frameborder="0"
loading="lazy"
webkitAllowFullScreen
mozAllowFullScreen
allowFullScreen
allow="clipboard-write">
</iframe>
</div>
<p></p>

:::warning[Exposed by FlutterFlow]
Please note that Action Triggers are provided by FlutterFlow and are not user-generated. You can
only work with the ones provided by FlutterFlow.
Please note that Action Triggers are exposed by FlutterFlow and are not user-generated. You can
only work with the ones provided in the Action Flow Editor.
:::

Each trigger has its own separate node-editor, allowing you to create distinct logic flows for
Expand All @@ -57,7 +82,7 @@ specific to the selected trigger.
width: '100%'
}}>
<iframe
src="https://demo.arcade.software/JvaQ229YQSXBXsNRdA3l?embed&show_copy_link=true"
src="https://demo.arcade.software/IazHon14tfvS4UljRsqu?embed&show_copy_link=true"
title="Switching Triggers"
style={{
position: 'absolute',
Expand Down Expand Up @@ -127,7 +152,7 @@ the function body with the desired logic.
width: '100%'
}}>
<iframe
src="https://demo.arcade.software/AvnbHPyUl6FYbbnCAU8f?embed&show_copy_link=true"
src="https://demo.arcade.software/I9valjo4KqgEs8qol2Wp?embed&show_copy_link=true"
title="Create New Action"
style={{
position: 'absolute',
Expand Down Expand Up @@ -161,7 +186,7 @@ The Right Panel serves two main purposes:
width: '100%'
}}>
<iframe
src="https://demo.arcade.software/nfgVsa6x5Rb2uCtw5oIJ?embed&show_copy_link=true"
src="https://demo.arcade.software/oHXsShi0Kyo5hbOIYZL5?embed&show_copy_link=true"
title="Arcade Flow (Fri May 10 2024)"
style={{
position: 'absolute',
Expand All @@ -184,11 +209,11 @@ The Right Panel serves two main purposes:

In the Action Flow Editor, the icon in the upper left corner indicates the widget to which the current action flow is bound.

![Action Flow Editor](../../../../static/img/action-flow-editor-widget.avif)
![Widget Binding](img/widget-binding.avif)

:::info
If you rename your widget, the new name will automatically be updated and associated with this action flow. This makes it easier to keep track of the logic associated with each widget, ensuring clarity and better organization of your action flows.

![img.png](img/img.png)
:::

### Issues

Expand All @@ -197,39 +222,15 @@ these are neither issues in the whole project nor issues in all of the action fl
generated from the action flows bound to *this* widget. This includes *all* the action flows on
*all* the triggers and not just currently visible action flow on the selected trigger.

<div className="arcade-container" style={{
position: 'relative',
paddingBottom: 'calc(55.441478439425055% + 41px)', // Preserves the original aspect ratio and padding
height: 0,
width: '100%'
}}>
<iframe
src="https://demo.arcade.software/RxkkYgCTWU2Zo2i7Tzuz?embed&show_copy_link=true"
title="Issues"
style={{
position: 'absolute',
top: 0,
left: 0,
width: '100%',
height: '100%',
colorScheme: 'light',
}}
frameborder="0"
loading="lazy"
webkitAllowFullScreen
mozAllowFullScreen
allowFullScreen
allow="clipboard-write">
</iframe>
</div>
![Issues](img/action-errors.avif)

### Action Blocks

The diamond icon in the Action Flow Editor opens a menu where you can create and edit Action Blocks.
**Action Blocks** are reusable action flows that can accept parameters and return values, promoting code
reusability and modularity.

![action-block.avif](../../../../static/img/action-block.avif)
![action-block.avif](img/action-block-icon.avif)

:::tip[Deep Dive on Action Blocks]
Learn more about different types of **[Action Blocks](action-blocks.md)** and their scopes.
Expand All @@ -246,7 +247,7 @@ Here's a quick demo of how you can add an action or multiple sequential actions
width: '100%'
}}>
<iframe
src="https://demo.arcade.software/w3B62goFPcrUn1FFno3V?embed&show_copy_link=true"
src="https://demo.arcade.software/pzHtQyaiPVeLC01vbgbs?embed&show_copy_link=true"
title=""
style={{
position: 'absolute',
Expand Down
Loading