You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h4align="center">Acrylic & aero blur effect on Flutter Windows.</h4>
2
+
<h4align="center">Window blur & transparency effects for Flutter on Windows & Linux</h4>
3
3
4
4
5
5
## Installation
@@ -8,14 +8,17 @@ Mention in your `pubspec.yaml`.
8
8
```yaml
9
9
dependencies:
10
10
...
11
-
flutter_acrylic: ^0.0.1
11
+
flutter_acrylic: ^0.0.2
12
12
```
13
13
14
14
## Example
15
15
16
16
You can [download](https://github.com/alexmercerind/flutter_acrylic/releases/download/v0.0.1/flutter_acrylic_example.zip) & try out the example application.
Find `my_application.cc` inside the `linux` directory of your Flutter project & remove following lines from it.
79
+
80
+
```cpp
81
+
gtk_widget_show(GTK_WIDGET(window));
82
+
```
83
+
84
+
```cpp
85
+
gtk_widget_show(GTK_WIDGET(view));
86
+
```
87
+
88
+
**Adding blur to the Window.**
89
+
90
+
Since current Flutter embedder on Linux uses GTK 3.0, so there is no official API available for backdrop blur of the window.
91
+
92
+
However, some desktop environments like KDE Plasma (with KWin compositor) have some third party scripts like [kwin-forceblur](https://github.com/esjeon/kwin-forceblur) from [Eon S. Jeon](https://github.com/esjeon), which allow to add blur to GTK 3.0 windows aswell, when the window is transparent (which you can certainly achieve using the plugin). Thus, this setup can be used to obtain result as shown in the picture.
93
+
94
+
Blur on Linux is more dependent on the compositor, some compositors like compiz or wayfire also seem to support blur effects.
95
+
96
+
### Windows
97
+
70
98
This plugin exposes the undocumented `SetWindowCompositionAttribute` API from `user32.dll` on Windows 10.
71
99
Learn more at [Rafael Rivera](https://github.com/riverar)'s amazing blog post about this [here](https://withinrafael.com/2015/07/08/adding-the-aero-glass-blur-to-your-windows-10-apps).
72
100
@@ -90,10 +118,13 @@ MIT License. Contributions welcomed.
0 commit comments