Skip to content
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

Add support for web #79

Merged
merged 3 commits into from Aug 5, 2021
Merged

Conversation

wreppun
Copy link

@wreppun wreppun commented Jul 21, 2021

Flutter does not currently support either:

  • BlendMode.clear
  • Path.combine

To work around this, I swapped out the layered approach in the current repo with an approach which simply draws the inverted shape (either a circle, rectangle, or rounded rectangle) used for the overlay.

It would be nice if Flutter Web supported the above listed method. But they don't and I need this now, so I thought I'd open a PR if you're interested. It ain't pretty, but it works.

Cheers.

@RafaelBarbosatec
Copy link
Owner

RafaelBarbosatec commented Jul 27, 2021

Hi @wreppun !
Thanks so much for contribution !!!!
It’s awesome !
I just encountered a small problem when the animation is rectangle type. notice in the video that in the exit animation it doesn't complete the animation until it leaves the screen completely.

Gravacao.de.Tela.2021-07-27.as.13.09.26.mov

@RafaelBarbosatec
Copy link
Owner

Thanks for contributing !! LGTM!
I will make the necessary adjustments to fix this little bug!

@RafaelBarbosatec RafaelBarbosatec merged commit 18679af into RafaelBarbosatec:master Aug 5, 2021
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.

None yet

2 participants