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

Chatify's text message implementation.

Chatify Text Message #

Text message provider for Chatify. Implements a TextMessage content model and a TextMessageProvider that renders messages and supports composing from text input.

Installation #

flutter pub add chatify_text_message

Usage #

Register the provider when initializing Chatify:

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

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

API #

  • TextMessage extends MessageContent and serializes to/from JSON
  • TextMessageProvider extends BasicMessageProvider<TextMessage> and:
    • supports text input (supportsTextInput = true)
    • builds TextMessageWidget for display
0
likes
130
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

Chatify's text message implementation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

chatify, flutter, readmore

More

Packages that depend on chatify_text_message