Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmercerind committed Oct 25, 2021
1 parent f74f45c commit f32bb75
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,28 @@ dependencies:
## Documentation
### Acrylic
Initialize the plugin inside the main method.
```dart
void main() {
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
Acrylic.initialize();
await Window.initialize();
runApp(MyApp());
}
```

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,
);
```
Expand All @@ -50,8 +54,6 @@ Following effects are available.
- `WindowEffect.acrylic`.
- `WindowEffect.mica`.

### Window

Other utility features offered by the plugin.

Enter fullscreen.
Expand Down

0 comments on commit f32bb75

Please sign in to comment.