Flow Event Widget
A container that reveals and animates its child widgets the moment a flow fires an event at it, without waiting for anything else on screen. It works like the Flow Alert Widget except for when it may appear.
Alert or event?
An alert waits its turn. An event doesn't.
Alerts are exclusive, one at a time. Events never wait and are never waited on, so a Flow Event can appear while a subscription alert is playing. Use it for confetti, a screen shake, a sound sting or a counter ticking up.
Flow Events keep firing while alerts are paused.
How It Works
- Add a Flow Event widget and give it an Event name.
- Declare the parameters the flow will send.
- Add child widgets and bind them with
{{flowEvent.<name>}}tokens. - In the flow editor, add a Flow Event effect and pick this widget from its dropdown.
The widget starts hidden and appears only when an event fires.
Parameters
Same as the Flow Alert widget: a name and a type (Text, Number, Toggle, Image, Colour). A parameter called intensity becomes {{flowEvent.intensity}}.
Naming and targeting
A flow picks this widget by its overlay and its event name together, so duplicating an overlay creates a new target. A blank name can't be reached.
Event names are separate from alert names: a Flow Alert effect never reaches a Flow Event widget, even with the same name.
Firing it repeatedly
Every fire is delivered. Firing again restarts the widget's animation rather than layering a second copy.
Settings
- Event name: how flows address this widget
- Parameters: the fields flows may send it
- Animation / Easing / In duration / Display time / Out duration: how it appears and leaves
- Backdrop: background behind the children
Display time is how long the children stay on screen.