Skip to content

Theme Widgets - Can't update fields with constants #5636

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

Open
2 tasks done
Wojtek-G opened this issue Apr 1, 2025 · 1 comment
Open
2 tasks done

Theme Widgets - Can't update fields with constants #5636

Wojtek-G opened this issue Apr 1, 2025 · 1 comment
Assignees
Labels
Bug status: confirmed Issue has been reproduced and confirmed as a bug.

Comments

@Wojtek-G
Copy link

Wojtek-G commented Apr 1, 2025

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

You can’t update the constants after creating the theme widget style from an existing widget that has constants used as values in the style.

Expected Behavior

You can add/edit constants as the theme widget styles fields values.

Steps to Reproduce

  1. Create a new project.
  2. Create a new constant "test1", make it a double, set value 24 for example.
  3. Create a new container.
  4. Set border width of the container to constant "test1".
  5. Save the container styles new theme widget style "testtheme1".
  6. Go to the style panel, check the theme widget style "testtheme1" and try to edit the border width.

Reproducible from Blank

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

Bug Report Code (Required)

IT4kz8r134t2pbxZ0KrbbexKhjk4HEA+TL03pu0bFEggGLbrBIYMafTOTFhWTteoY3NbKEWKhjge//D3vuDxGu0oHEiCQJxgz5FidA7hQka/aoSsPLmWZXclROxYIG6e3MCo2yNCJtZ1R04s1zmUGPK8YAzYQL37Zwh9f6PHaOI=

Visual documentation

Image

Environment

- FlutterFlow version: FlutterFlow v5.3.5 released March 27, 2025
Flutter version is 3.27.3
- Platform: macOS
- Browser name and version: Chrome 134.0.6998.166 (arm64)
- Operating system and version affected: macOS 15.3.2 (24D81)

Additional Information

There is also another a bug regarding the libraries design system when have widget styles with constants (another issue reported).

@Wojtek-G Wojtek-G added the status: needs triage A potential issue that has not been confirmed as a bug. label Apr 1, 2025
@Wojtek-G Wojtek-G changed the title Theme Widgets - Can't update fields with constants + library issues. Theme Widgets - Can't update fields with constants Apr 1, 2025
@Alezanello Alezanello self-assigned this Apr 1, 2025
Copy link
Collaborator

Thank you so much for catching this! It looks like when a Theme Style is created from a widget that includes a variable, the value can't be modified in the Theme Editor. I’ll go ahead and pass this along to the engineering team for further review.

@Alezanello Alezanello removed the status: needs triage A potential issue that has not been confirmed as a bug. label Apr 1, 2025
@Alezanello Alezanello added status: confirmed Issue has been reproduced and confirmed as a bug. Bug labels Apr 1, 2025 — with Linear
@Alezanello Alezanello removed their assignment Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug status: confirmed Issue has been reproduced and confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

3 participants