alexmercerind / flutter_acrylic

Flutter library for window acrylic, mica & transparency effects.
MIT License
595 stars 53 forks source link

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

Open lucasjinreal opened 1 year ago

lucasjinreal commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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