flutter_acrylic icon indicating copy to clipboard operation
flutter_acrylic copied to clipboard

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

Open lucasjinreal opened this issue 2 years ago • 2 comments

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)

lucasjinreal avatar Feb 17 '23 03:02 lucasjinreal

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.

alexmercerind avatar Feb 17 '23 03:02 alexmercerind

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

lucasjinreal avatar Feb 17 '23 03:02 lucasjinreal