Skip to content

fix(Style/Colors): Add extension to ensure consistent toString conversion for custom colors in release mode #276

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
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gfelizola
Copy link

@gfelizola gfelizola commented Nov 21, 2024

Recent updates to Flutter/Dart have changed the behavior of the toString method for classes in release mode, resulting in output like Instance of 'Class'. This change caused a bug when converting custom colors to strings in GSConfigStyle.

To address this issue, I’ve added an extension that ensures the toString method for colors behaves as expected, providing the correct string representation.

Dependes on #275

- Remove app deprecated properties checkerboardRasterCacheImages and checkerboardOffscreenLayers
- Fix GSRadio import of ToggleableStateMixin conflict
- ios general updates
…ode after flutter 3.19

- In new version of flutter/dart when converting class toString we got "Intance of 'Class'" in release mode. This generate a bug when converting custom colors to string at the GSConfigStyle. To fix, i`m adding an extension to allow the color.tostring conversion as expected.
@gfelizola gfelizola changed the title Fix: Add extension to ensure consistent toString conversion for custom colors fix(Style/Colors): Add extension to ensure consistent toString conversion for custom colors in release mode Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant