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

hello! how to make only left panel to be acrylic with bitsdojo? #59

Open
lucasjinreal opened this issue Feb 17, 2023 · 2 comments
Open

Comments

@lucasjinreal
Copy link

bitsdojo can split window, I wanna only left panel to be acrylic, is there a way to this?

(this is because of windows10 didn't support acrylic, the aero effect makes text hard to see)

@alexmercerind
Copy link
Owner

You can "clip out" a section from your widget tree & remove Flutter paint from that region. It will make Flutter use window's background in that region. Do it using CustomPainter, just use BlendMode.clear. See:

https://github.com/alexmercerind/flutter_native_view/blob/master/lib/src/widgets.dart#L145-L160

This is only solution for Windows & Linux.

@lucasjinreal
Copy link
Author

thanks, does there a more clear demo for this? I am more very clear about remove Flutter paint from that region, I just have a Widget, how can I remove my widget? Curretnly acrylic controls all window, I don't know how to override it's acrylic background

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

No branches or pull requests

2 participants