Skip to content

Commit f996bad

Browse files
pinkeshmarsleighajarettPoojaB26
authored
All FFDC features (#147)
* Keyboard Shortcut (#144) * added on shortcut press action trigger * 'demo arcade' removed * Added important points related to keyboard shortcuts * Added branch permission and commits section * Making a few modifications * Fixing some outdated information and rewording * Added dev environments * added note * Content correction * Updated as per review comments * Added environment variables * Making some changes * One more change based on pooja feedback * Libraries (#141) * Added libraries content * add note * added dependency conflicts section * minor fix * Update docs/resources/libraries.md Co-authored-by: Pooja Bhaumik <[email protected]> * Apply suggestions from Pooja's review Co-authored-by: Pooja Bhaumik <[email protected]> * Address review comments * Move libraries to projects --------- Co-authored-by: Pooja Bhaumik <[email protected]> * Widget builder as parameter (#142) * Added widget builder as parameter * Address review comments * Added libraries content * add note * added dependency conflicts section * minor fix * Update docs/resources/libraries.md Co-authored-by: Pooja Bhaumik <[email protected]> * Apply suggestions from Pooja's review Co-authored-by: Pooja Bhaumik <[email protected]> * Address review comments * Move libraries to projects * making some modifications * Moving built in widgets to widget section * Making adjustments to widget builder as parameter * Mentioning commits in versions page * Adding shotcut info * Fix name * update action flow editor visuals * added action triggers * added arcade for example 3rd step * added lifecycle stages * Fixed review comments * Formatting fix * Formatting fixes * added lifecycle for tap gesture * Making adjustements to gesture detector stuff * Specify Firestore collections * fix slug for widget builder * fix admonition * minor corrections * fix slug for dev envs * fix slug for dev envs * fix slug for dev envs * Spellings --------- Co-authored-by: null <null> Co-authored-by: Leigha Reid <[email protected]> Co-authored-by: PoojaB26 <[email protected]>
1 parent e35ebf3 commit f996bad

File tree

152 files changed

+1374
-507
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+1374
-507
lines changed

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

Lines changed: 43 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Designing interactivity involves two steps:
1616
1. Listening for Interaction (**Action Triggers**)
1717
2. Responding to Interaction (**Actions**)
1818

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

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

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

3535
### Action Triggers
3636

37-
The **Action Triggers** toolbar, located at the top of the editor, displays a list of available
38-
triggers. Each trigger has its own separate node editor, allowing you to create distinct logic
39-
flows for different events. When you switch between triggers, the node editor updates to display
40-
the logic specific to the selected action trigger.
37+
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.
4138

42-
![Triggers](../../../../static/img/action-flow-editor-triggers.avif)
39+
:::info
40+
To learn more about **Action Triggers** and its types, refer [**here**](action-triggers.md).
41+
:::
42+
43+
<div style={{
44+
position: 'relative',
45+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
46+
height: 0,
47+
width: '100%'}}>
48+
<iframe
49+
src="https://demo.arcade.software/2kuQfhvjyPnW8PvbsaUw?embed&show_copy_link=true"
50+
title=""
51+
style={{
52+
position: 'absolute',
53+
top: 0,
54+
left: 0,
55+
width: '100%',
56+
height: '100%',
57+
colorScheme: 'light'
58+
}}
59+
frameborder="0"
60+
loading="lazy"
61+
webkitAllowFullScreen
62+
mozAllowFullScreen
63+
allowFullScreen
64+
allow="clipboard-write">
65+
</iframe>
66+
</div>
67+
<p></p>
4368

4469
:::warning[Exposed by FlutterFlow]
45-
Please note that Action Triggers are provided by FlutterFlow and are not user-generated. You can
46-
only work with the ones provided by FlutterFlow.
70+
Please note that Action Triggers are exposed by FlutterFlow and are not user-generated. You can
71+
only work with the ones provided in the Action Flow Editor.
4772
:::
4873

4974
Each trigger has its own separate node-editor, allowing you to create distinct logic flows for
@@ -57,7 +82,7 @@ specific to the selected trigger.
5782
width: '100%'
5883
}}>
5984
<iframe
60-
src="https://demo.arcade.software/JvaQ229YQSXBXsNRdA3l?embed&show_copy_link=true"
85+
src="https://demo.arcade.software/IazHon14tfvS4UljRsqu?embed&show_copy_link=true"
6186
title="Switching Triggers"
6287
style={{
6388
position: 'absolute',
@@ -127,7 +152,7 @@ the function body with the desired logic.
127152
width: '100%'
128153
}}>
129154
<iframe
130-
src="https://demo.arcade.software/AvnbHPyUl6FYbbnCAU8f?embed&show_copy_link=true"
155+
src="https://demo.arcade.software/I9valjo4KqgEs8qol2Wp?embed&show_copy_link=true"
131156
title="Create New Action"
132157
style={{
133158
position: 'absolute',
@@ -161,7 +186,7 @@ The Right Panel serves two main purposes:
161186
width: '100%'
162187
}}>
163188
<iframe
164-
src="https://demo.arcade.software/nfgVsa6x5Rb2uCtw5oIJ?embed&show_copy_link=true"
189+
src="https://demo.arcade.software/oHXsShi0Kyo5hbOIYZL5?embed&show_copy_link=true"
165190
title="Arcade Flow (Fri May 10 2024)"
166191
style={{
167192
position: 'absolute',
@@ -184,11 +209,11 @@ The Right Panel serves two main purposes:
184209

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

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

214+
:::info
189215
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.
190-
191-
![img.png](img/img.png)
216+
:::
192217

193218
### Issues
194219

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

200-
<div className="arcade-container" style={{
201-
position: 'relative',
202-
paddingBottom: 'calc(55.441478439425055% + 41px)', // Preserves the original aspect ratio and padding
203-
height: 0,
204-
width: '100%'
205-
}}>
206-
<iframe
207-
src="https://demo.arcade.software/RxkkYgCTWU2Zo2i7Tzuz?embed&show_copy_link=true"
208-
title="Issues"
209-
style={{
210-
position: 'absolute',
211-
top: 0,
212-
left: 0,
213-
width: '100%',
214-
height: '100%',
215-
colorScheme: 'light',
216-
}}
217-
frameborder="0"
218-
loading="lazy"
219-
webkitAllowFullScreen
220-
mozAllowFullScreen
221-
allowFullScreen
222-
allow="clipboard-write">
223-
</iframe>
224-
</div>
225+
![Issues](img/action-errors.avif)
225226

226227
### Action Blocks
227228

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

232-
![action-block.avif](../../../../static/img/action-block.avif)
233+
![action-block.avif](img/action-block-icon.avif)
233234

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

0 commit comments

Comments
 (0)