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_packageWhat 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.
- zego_uikit_prebuilt_video_conference
Prebuilt video conference kit with UI and business logic for group voice/video chats.
68Compare - waveform_recorder
Flutter package for recording audio with real-time waveform visualization.
84Compare - native_video_player
A Flutter widget to play videos on iOS and Android using a native implementation.
67Compare - zego_uikit_prebuilt_call
Full-featured prebuilt UI kit for one-on-one and group voice and video calls with offline invitations.
79Compare
Works with
Packages commonly used together with voice_message_package: ones it builds on, ones built on it, and its own family.
- flutter_cache_managervoice_message_package depends on itGeneric cache manager for saving web files and cache info on device storage.
- just_audiovoice_message_package depends on itFeature‑rich audio player for Flutter supporting gapless playlists and multiple sources
- syncfusion_flutter_slidersvoice_message_package depends on itUI-rich slider, range slider, and range selector widgets with numeric and date support.