voice_message_package 2.2.1 copy "voice_message_package: ^2.2.1" to clipboard
voice_message_package: ^2.2.1 copied to clipboard

Flutter package to play/puase voice message in chat messengers.

Voicey - Flutter voice message player #

Demo #

Voicey is a flutter package to play voice messages in chats. Also, you can sicking by dragging on voice noises.

Platform Support #

Android iOS MacOS Web
✔️ ✔️ ✔️ ✔️

Installation #

First add voicey to your pubsbec.yaml file:

dependencies:
  voice_message_package: <latest-version>

Next, get package from pub dependencies:

flutter pub get

How to use #

All you need is pass your audio file src to VoiceMessage widget:

VoiceMessageView(
  controller: VoiceController(
    audioSrc:
        'https://dl.solahangs.com/Music/1403/02/H/128/Hiphopologist%20-%20Shakkak%20%28128%29.mp3',
    onComplete: () {
      /// do something on complete
    },
    onPause: () {
      /// do something on pause
    },
    onPlaying: () {
      /// do something on playing
    },
    onError: (err) {
      /// do somethin on error
    },
  ),
  maxDuration: const Duration(seconds: 10),
  isFile: false,
  innerPadding: 12,
  cornerRadius: 20,
),

Todo #

  • [✔️] Cache audio and play from cache.
  • [✔️] Seeking on audio by drag on noises.
  • [✔️] Change playback speed.
  • [✔️] Handle exceptions.
  • [✔️] Customization .
  • [✔️] Dynamic width for voice widget.

www.mehran.monster

### Contributing
🍺 Pull requests are welcome!

Don't forget that open-source makes no sense without contributors. No matter how big your changes are, it helps us a lot even it is a line of change.

License #

Licensed under the MIT license. See LICENSE.

بم میگن اوستا حتی سیاها آفریقا

234
likes
130
pub points
96%
popularity

Publisher

verified publishermehran.monster

Flutter package to play/puase voice message in chat messengers.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_cache_manager, just_audio, syncfusion_flutter_sliders

More

Packages that depend on voice_message_package