chatify_voice_message 0.0.3 copy "chatify_voice_message: ^0.0.3" to clipboard
chatify_voice_message: ^0.0.3 copied to clipboard

Chatify's voice message implementation.

Chatify Voice Message #

Voice message provider for Chatify. Defines VoiceMessage content and a VoiceMessageProvider that renders audio messages. The UI component is a placeholder; customize it in your app or extend this package.

Installation #

flutter pub add chatify_voice_message

Usage #

Register the provider when initializing Chatify:

import 'package:chatify/chatify.dart';
import 'package:chatify_voice_message/chatify_voice_message.dart';

await Chatify.init(
  currentUser: currentUser,
  chatRepo: chatRepo,
  messageRepoFactory: (chat) => messageRepoFor(chat),
  uploaderFactory: (attachment) => uploaderFor(attachment),
  messageProviders: [
    VoiceMessageProvider(),
  ],
);

API #

  • VoiceMessage extends MessageContent with: duration, isPlayed, samples
  • VoiceMessageProvider extends MediaMessageProvider<VoiceMessage>
  • VoiceMessageWidget is currently a placeholder; replace or extend as needed
0
likes
125
points
13
downloads

Publisher

unverified uploader

Weekly Downloads

Chatify's voice message implementation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

chatify, flutter

More

Packages that depend on chatify_voice_message