From f32bb7524a38932c3cc88b5901f31d579016e7b2 Mon Sep 17 00:00:00 2001 From: Hitesh Kumar Saini Date: Tue, 26 Oct 2021 00:21:17 +0530 Subject: [PATCH] Update README --- README.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 8e45a5d..f10fca7 100644 --- a/README.md +++ b/README.md @@ -19,14 +19,12 @@ dependencies: ## Documentation -### Acrylic - Initialize the plugin inside the main method. ```dart -void main() { +Future main() async { WidgetsFlutterBinding.ensureInitialized(); - Acrylic.initialize(); + await Window.initialize(); runApp(MyApp()); } ``` @@ -34,9 +32,15 @@ void main() { Apply the effect to Flutter window. ```dart -Acrylic.setEffect( - effect: WindowEffect.aero, - color: this.color, +await Acrylic.setEffect( + effect: WindowEffect.acrylic, + color: Color(0xCC222222), +); +``` + +```dart +await Acrylic.setEffect( + effect: WindowEffect.mica, dark: true, ); ``` @@ -50,8 +54,6 @@ Following effects are available. - `WindowEffect.acrylic`. - `WindowEffect.mica`. -### Window - Other utility features offered by the plugin. Enter fullscreen.