codifyiq_chat_attachments 1.0.0
codifyiq_chat_attachments: ^1.0.0 copied to clipboard
Image, file and video message bubbles for flutter_chat_ui that open the CodifyIQ image, PDF and video viewers.
codifyiq_chat_attachments example #
import 'package:codifyiq_chat_attachments/codifyiq_chat_attachments.dart';
import 'package:flutter_chat_core/flutter_chat_core.dart';
import 'package:flutter_chat_ui/flutter_chat_ui.dart';
import 'package:material_ui/material_ui.dart';
Widget buildChat(ChatController controller) {
final attachments = ChatAttachments(
onShare: (message, origin) => debugPrint('Share ${message.id}'),
onDownload: (message) => debugPrint('Download ${message.id}'),
);
return Chat(
chatController: controller,
currentUserId: 'me',
resolveUser: (id) async => User(id: id),
builders: attachments.apply(),
);
}
A runnable catalog demonstrating every CodifyIQ component lives in the
example/ app at the repository root.