Fix the shadows problem with Android (compose) in Dev mode

I have a problem with a shadow that faces the Android engineer when applying the shadow styling

“the shadow modifier is not compatible with this design in Figma”

and the outcome shadow is not the same as the design
Is there any solution or plugin to fix that?

Code

1 Like

Hi there,

Thanks for reaching out. I’m checking with our internal team. I will get back to you when I have anything I can share with you.

Thanks for your patience.
Toku

Waiting for your respond
Thank you

Thanks for your patience. Our product team is checking it, so please hang in tight. Thanks!

I’m having the exact same problem.

Was there ever a solution to this?

Hey All, sorry for the delay!

Our Dev mode team filed a bug for this, but then got busy with other projects surrounding Config 2024. Now that things are slowing down again, they hope to do a deeper dive into fixing this issue.

We appreciate your patience and understanding - stay tuned!

Any update regarding this problem?

Hey guys, any updates? I saw the same issue and now most Android team are moving towards Compose, and we need the proper code translation for the dev team.

Hey All, thanks for your patience!

Our team reported back that Android hasn’t improved the functionality of the .shadow() modifier since we originally filed a ticket, so there is no easy fix yet.

To correctly translate Figma shadows to Android shadows, we would have to build a custom modifier from scratch. This would be a separate package or library that users would install. Instead of .shadown(), users would use .figmaShadow() to replicate the behavior of Figma shadows.

Is this something you’d be interested in?

I’ve updated this topic into a feature request to gauge overall interest from the community. If we get enough votes from dev mode folks, we’ll be able to advocate for the project and team effort it would require to build.

4 Likes

Of course yes!
We (many developers) are waiting on this feature.
Please vote for a post above, it is important!

1 Like

Of course
I think the shadow engine in Figam is different from Android and IOS
You should handle it to match every operating system
@dvaliao