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.