v_chat_voice_player library
V Chat Voice Player - A powerful and customizable voice message player for Flutter
This package provides:
- Efficient state management using ValueNotifier best practices
- Support for multiple audio sources (files, URLs, bytes)
- Cross-platform compatibility (including VLC for iOS WebM)
- Customizable UI components
- Performance optimized with proper resource management
- Modular architecture with separate service classes for better maintainability
Classes
- VoiceAvatarConfig
- Configuration for user avatar with mic icon
- VoiceButtonConfig
- Configuration for button appearance and behavior
- VoiceColorConfig
- Configuration for colors used throughout the voice player
- VoiceContainerConfig
- Configuration for container styling
- VoiceSpeedConfig
- Configuration for speed control button appearance
- VoiceStateModel
- Model representing the current state of voice message playback This model holds all the data needed for the voice player UI
- VoiceTextConfig
- Configuration for text styling in the voice player
- VoiceVisualizerConfig
- Configuration for the voice visualizer appearance and behavior
- VVoiceMessageController
- A controller for handling voice message playback following ValueNotifier best practices. This controller manages all voice player state and provides a clean API for the UI.
- VVoiceMessageView
- A widget that displays a voice message player with play/pause controls, a seek bar, and speed control.
Enums
- PlaySpeed
- Enum representing different playback speeds
- PlayStatus
- Enum representing the current playback status of the voice message
Extensions
- GetSpeed on PlaySpeed
- Extension to get the numeric speed value from PlaySpeed enum
- PlayStatusExtension on PlayStatus
- Extension to add utility methods to PlayStatus