FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
130 stars 26 forks source link

Snackbar Duration #4545

Open scottwyn13 opened 1 month ago

scottwyn13 commented 1 month ago

Can we access your project?

Current Behavior

Within an action I have multiple snackbars. If I modify the duration of one it sets the snackbar duration on all other snackbars within the same action to the same duration.

Expected Behavior

Snackbar should only modify duration of the snackbar being edited.

Steps to Reproduce

Create action. Add show snackbar action. Add another show snackbar action. Modify one of the snackbar durations. Other snackbar duration will now be set to the same duration.

Reproducible from Blank

Bug Report Code (Required)

IT40k/rY26Zhm9th5pfydPZGpGYmKXp9R4ANscJ7aCgofePtOol3evXsR1pBTc+9S1Y/M0SmmnsGp8r3hezLCvEBIQuubrp8/pF6YRbiZ3GiQZOBDajpSGt5BcNPGUy+36WJ2AhCNtZaSkJl1GeqNu69Vh7UHufXImdISq/LZO4=

Visual documentation

https://github.com/user-attachments/assets/e0a1638c-fc50-4bc6-b788-a95f0c989885

Environment

- FlutterFlow version: v5.0.8 released October 22, 2024
- Flutter version is 3.24.2
- Platform: Desktop App
- Operating system and version affected: MacOS

Additional Information

No response

Alezanello commented 1 month ago

Thank you for pointing this out! I can confirm this behavior. The good news is that this issue is only visual in the UI Builder. In the actual code, the duration is generated separately for each SnackBar, so you can still deploy them with different durations without any problems.

image.png