Skip to content

Commit

Permalink
Initialize binding at start of sample
Browse files Browse the repository at this point in the history
Otherwise, this fails on macOS.
  • Loading branch information
filiph committed Apr 5, 2024
1 parent 965ac0e commit 383ae21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ void main() async {
);
});

WidgetsFlutterBinding.ensureInitialized();

/// Initialize the player
await SoLoud.instance.init().then(
(_) {
Expand Down

0 comments on commit 383ae21

Please sign in to comment.