Skip to content
pubscout

opus_flutter

3.0.3, released 2 years ago by epnw.eu

Provides a DynamicLibrary loader for the Opus codec on Flutter platforms.

WASM-ready
$ flutter pub add opus_flutter
Source repository

What it does

It loads the native Opus library (libopus 1.3.1) for use with opus_dart. The package itself does not expose Opus functions; it only supplies the library handle.

AI-written summary of version 3.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need Opus audio encoding/decoding in a Flutter app
  • You prefer a null‑safe, cross‑platform loader rather than bundling the library yourself

Skip it when

  • You are not using Opus or opus_dart
  • You need a higher‑level Opus API rather than just the library

Strengths

  • Cross‑platform support (Android, iOS, Web, Windows)
  • Null‑safe and up‑to‑date with opus_dart
  • Simple dependency, no build scripts

Weaknesses

  • Only a loader – requires opus_dart for actual usage
  • No direct API, just a DynamicLibrary

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
5

Add opus_flutter to pubspec and import; no native configuration required.

// Add to pubspec
// dependencies:
//   opus_flutter: ^3.0.3

import 'package:opus_flutter/opus_flutter.dart';

final lib = await OpusFlutter.load();

Works with

Packages commonly used together with opus_flutter: ones it builds on, ones built on it, and its own family.