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/ui/widgets/widget-commonalities.md
+71-2Lines changed: 71 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ When working with widgets in FlutterFlow, you'll encounter properties and featur
15
15
16
16
Visibility settings in FlutterFlow allow you to dynamically control when and how widgets appear in your app.
17
17
18
-
### Conditional Visibility
18
+
### Conditional
19
19
20
20
**Conditional** visibility allows you to control the display of UI elements (widgets) based on specific conditions or criteria. It helps you create dynamic, personalized experiences by showing or hiding certain content.
21
21
@@ -29,7 +29,7 @@ The **Show in UI Builder** toggle only affects visibility within the design canv
The **Responsive** visibility property allows you to show or hide widgets based on device screen size—such as mobile, tablet, or desktop. By toggling each icon, you can show or hide the widget according to your design needs.
35
35
@@ -431,3 +431,72 @@ Use consistent border and padding styles for buttons, cards, and containers to m
431
431
</iframe>
432
432
</div>
433
433
<p></p>
434
+
435
+
## Trigger Action on Selection Change
436
+
437
+
Here, you will see how to trigger an action when the selection changes for any Form widget such as Dropdown, RadioButton, ChoiceChips, Slider, and RatingBar.
438
+
439
+
:::info
440
+
To simplify, we've used the Dropdown widget as an example. However, the same instructions apply to other Form widgets as well.
441
+
:::
442
+
443
+
<div style={{
444
+
position: 'relative',
445
+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
2. Select **Actions** from the properties panel, and click **+ Add Action**.
473
+
3. You will notice that the **Type of Action** (aka callback) is already set to **On Selected**. That means actions added under this will be called whenever the selection changes.
474
+
4. Now you can add any action here.
475
+
476
+
Here is an example showing the snackbar message when the Dropdown selection changes.
477
+
478
+
<div style={{
479
+
position: 'relative',
480
+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
0 commit comments