Skip to content

Disable not working as expected #5839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
WisdomPanda opened this issue May 15, 2025 · 3 comments
Closed
2 tasks done

Disable not working as expected #5839

WisdomPanda opened this issue May 15, 2025 · 3 comments
Assignees
Labels
status: not a bug This is not a bug.

Comments

@WisdomPanda
Copy link

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

I was trying to set a button to disable based on a checkbox/switch, however for the life of me it wouldn't work.

After investigating a bit more, regardless of the action/value that's put into it, it simply won't disable correctly, even if I directly set disabled to true.

However, setting "preview in UI builder" oddly does force it to be true.

Expected Behavior

Disabled should react to the value/condition that is set.

Steps to Reproduce

  1. Create a new project
  2. Add a page
  3. Add a button
  4. Set the button's disabled field to true
  5. Set a color to something you can see
  6. Preview

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

ITFTz/Hqx89Nobhe+KrAb8doqCQvCUMfWLsr0utuGA0hNYutB6Qcf87BPhJLYte+Y25IAleakkwK0ej8uOLlEcY3ITasUa49yL5XQT3geDmVM66MCrjgP0R7MJtPJ23E1pmNgiNTJs9pdE4Q2V+uLvCdG3qCf9qOYwx5e6fDbOY=

Visual documentation

Image

Environment

- FlutterFlow version: Windows/Mac: 5.5.2.0
- Platform: Web, Desktop (Mac/Windows)
- Browser name and version: Brave, Chrome
- Operating system and version affected: Brave: 1.78.97 / Chrome: 136.0.7103.93

Additional Information

I'm just trying to disable a button if the user doesn't check a box T_T

@WisdomPanda WisdomPanda added the status: needs triage A potential issue that has not been confirmed as a bug. label May 15, 2025
@Juansarmi Juansarmi self-assigned this May 15, 2025
@Juansarmi Juansarmi added the status: not a bug This is not a bug. label May 15, 2025 — with Linear
@Juansarmi Juansarmi removed the status: needs triage A potential issue that has not been confirmed as a bug. label May 15, 2025
Copy link
Collaborator


Hi!

I'm sorry to hear you're experiencing this issue.

I’ve tried to reproduce the error, but I wasn’t able to.

I noticed that the disabled state of the button isn’t being applied because you're viewing the project in Preview mode. In this mode, there are some limitations. However, if you switch to Test mode, you should see the button correctly disabled, with the styles you applied.

Here’s something that might be helpful for you: https://docs.flutterflow.io/testing/run-your-app/

Best regards

@DammitSteve
Copy link

@Juansarmi thanks for your feedback - it really wasn't obvious to me that it wouldn't work in preview, so was banging my head thinking it was me - can confirm it works in test mode. 👍

Copy link
Collaborator

I’m glad everything is working as expected now! I’ll go ahead and close this issue, but if you encounter anything else, please don’t hesitate to open a new one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: not a bug This is not a bug.
Projects
None yet
Development

No branches or pull requests

3 participants