-
-
Notifications
You must be signed in to change notification settings - Fork 617
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
Icon in SlidableAction is not using foreground color #512
Comments
On closer inspection of Flutter 3.27.0's release notes, I saw several mentions of changes to Icons and their properties:
I haven't explored which of these, if any, is relevant, but they gave me an idea. I noticed that flutter_slidable instantiates the SlidableAction Icon(icon); As a test, I forked flutter_slidable and tried explicitly assigning the color and size like this: Icon(icon, color: foregroundColor, size: iconSize); where This yielded an appearance similar to what I observed before these API changes: ResultsAppearance in Flutter 3.24.5: Appearance in Flutter 3.27.0 with flutter_slidable v3.1.2: Appearance in Flutter 3.27.0 with flutter_slidable fork w/ modified icon style assignment approach: Here's a proof-of-concept PR: #513 For @biklas7 and anyone looking to implement this workaround in the meantime, you're welcome to use this: flutter_slidable:
git:
url: https://github.com/TimeFinderApp/flutter_slidable
ref: 6ab5a79f1f8f984ad5b5733fd94e90c8f97a0c8d |
What I did as a workaround for now was wrapping my
|
Maybe this is also related to Flutter 3.27 and the latest release: the default background color of the |
Thanks, @biklas7 and @lukemmtt. This workaround was a lifesaver. Here is how I used it in my project.
|
This must have been a breaking change introduced with the latest Flutter stable 3.27
The text was updated successfully, but these errors were encountered: