Skip to content
pubscout

voice_message_package

2.2.1, released 3 years ago by mehran.monster

Flutter widget to play voice messages with drag‑to‑seek and caching

$ flutter pub add voice_message_package

What it does

VoiceMessageView plays an audio file from a URL or local source. It supports play, pause, seek by dragging the waveform, and caches the file for offline use.

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

Use it when

  • You need a voice message player in a chat UI
  • You want built‑in caching and drag‑to‑seek
  • You prefer a ready‑made widget over configuring just_audio manually

Skip it when

  • You need to record audio
  • You need advanced audio features like equalizer or streaming
  • You want full control over audio playback without a widget wrapper

Strengths

  • Built‑in caching via flutter_cache_manager
  • Drag‑to‑seek on waveform
  • Simple declarative API
  • Supports Android, iOS, Web, macOS

Weaknesses

  • No recording support
  • Limited to playback only
  • Depends on just_audio internally

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3

Add voice_message_package to pubspec.yaml and run flutter pub get

VoiceMessageView(
  controller: VoiceController(
    audioSrc: 'https://example.com/audio.mp3',
    onComplete: () {},
  ),
  maxDuration: const Duration(seconds: 10),
  isFile: false,
  innerPadding: 12,
  cornerRadius: 20,
)

Alternatives

Packages that do the same job and could replace voice_message_package.

Works with

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