v_chat_voice_player
5.0.1, released 2 weeks ago by vchatsdk.com
Voice message playback widget with animated waveform, speed controls, and user avatars.
What it does
Provides a customizable voice message player widget for chat applications with play/pause controls, interactive seek bars, speed adjustment, and animated wave visualizers. Supports multiple audio sources including URLs, local files, and byte arrays.
AI-written summary of version 5.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a chat application and need to display voice messages.
- You require customizable voice waveforms and playback speed controls.
Skip it when
- You need background audio playback or a full-featured music player.
- You are recording audio rather than playing it back.
Strengths
- Includes animated waveform visualization and interactive seeking.
- Supports speed control, avatars, and extensive styling configurations.
- Cross-platform support across mobile, web, and desktop.
Weaknesses
- Seeking is not supported when loading audio from byte sources.
- Strictly tailored for chat voice messages rather than general audio streaming.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Requires v_platform as a dependency alongside v_chat_voice_player.
import 'package:flutter/material.dart';
import 'package:v_chat_voice_player/v_chat_voice_player.dart';
import 'package:v_platform/v_platform.dart';
class MyVoiceMessage extends StatefulWidget {
@override
_MyVoiceMessageState createState() => _MyVoiceMessageState();
}
class _MyVoiceMessageState extends State<MyVoiceMessage> {
late VVoiceMessageController controller;
@override
void initState() {
super.initState();
controller = VVoiceMessageController(
id: 'voice_001',
audioSrc: VPlatformFile.fromUrl(
networkUrl: 'https://example.com/voice.mp3',
),
);
}
@override
void dispose() {
controller.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return VVoiceMessageView(
controller: controller,
);
}
}Alternatives
Packages that do the same job and could replace v_chat_voice_player.
- just_audio
If you need a robust, low-level audio player for general audio streaming, playlists, or complex audio routing instead of a pre-built chat voice widget.
80Compare
Works with
Packages commonly used together with v_chat_voice_player: ones it builds on, ones built on it, and its own family.
- flutter_cache_managerv_chat_voice_player depends on itGeneric cache manager for saving web files and cache info on device storage.
- audioplayersv_chat_voice_player depends on itA Flutter plugin to play multiple audio files simultaneously
- flutter_vlc_playerv_chat_voice_player depends on itA VLC-powered video player alternative for Flutter, supporting multiple players.
- v_video_compressorSame familyFlutter plugin for video compression and thumbnail generation using native APIs.
- v_story_viewerSame familyA high-performance Flutter story viewer package inspired by Instagram and WhatsApp stories.
- v_chat_mention_controllerSame familyFlutter text editing controller for styled mentions, debounced user search, and markup.
- v_chat_bubblesBuilt on v_chat_voice_playerA comprehensive Flutter chat bubble library supporting Telegram, WhatsApp, Messenger, and iMessage styles.