Orientação gerada a partir de informações públicas. Apenas para referência.
Dash Chat 2 é um componente de interface de usuário de chat abrangente e altamente personalizável para Flutter, projetado para ser fácil de implementar enquanto oferece funcionalidades completas. Ele suporta mensagens em tempo real com tipos de mensagens ricos, indicadores de digitação, reações às mensagens e anexos de mídia. Feito para uso multiplataforma, funciona perfeitamente em Android, iOS, Web e macOS. O pacote oferece uma interface limpa e moderna por padrão, com opções extensivas de personalização para estilo e comportamento. Ideal para desenvolvedores que querem criar aplicativos com recursos de chat rapidamente e com eficiência.
Casos de uso
aplicativos de mensagens em tempo real
Interfaces de chat de suporte ao cliente
Aplicativos de bate-papo em grupo
Recursos de comunicação no aplicativo
Plataformas de redes sociais
Principais recursos
Tipos de mensagem ricos (texto, imagens, arquivos)
Indicadores de digitação
Reações de mensagens
Temas de interface personalizáveis
Compatibilidade multiplataforma
Integração fácil com serviços de backend
Indicado para
Desenvolvedores construindo recursos de bate-papo
Startups que precisam de implementação rápida de chat
Aplicativos que exigem interfaces de chat responsivas
Equipes que desejam alta personalização
Projetos direcionados para múltiplas plataformas
Considerações
Requer backend para mensagens persistentes
Lógica personalizada necessária para sincronização em tempo real
Estilização pode exigir conhecimento avançado em Flutter
Gerenciamento limitado de histórico de mensagens embutido
Não adequado para fluxos de trabalho de bate-papo complexos sem extensões
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
The most complete Chat UI for flutter
Easy to use, highly customizable and fully featured
You need another feature? you can use the customProperties field of the models, it allows you to pass other data to the library that you can then use inside custom builders to implement any feature you need.
Of course, if you think this feature can be useful to other people, feel free to open an issue/pull-request to discuss including it "natively" in the package.
You can run the example project to see more complex ways of using the package
Parameters of DashChat
ChatUser currentUser - required: Basically "you", we need to know who is the current user to put their messages to right side
Function(ChatMessage message) onSend - required: Function to call when the user sends a message, that's where you handle the logic to send the message to your backend and append the list of messages
List<ChatMessage> messages - required: The list of messages of the channel, you would usually not load all the messages at once but use the onLoadEarlier param of MessageListOptions to trigger a lazy loading
InputOptions inputOptions - optional: Options to customize the behaviour and design of the chat input
MessageOptions messageOptions - optional: Options to customize the behaviour and design of the messages
MessageListOptions messageListOptions - optional: Options to customize the behaviour and design of the overall list of message
QuickReplyOptions quickReplyOptions - optional: Options to customize the behaviour and design of the quick replies
ScrollToBottomOptions scrollToBottomOptions - optional: Options to customize the behaviour and design of the scroll-to-bottom button
readOnly - optional (default to false): Option to make the chat read only, it will hide the input field
List<ChatUser> typingUsers - optional: List of users currently typing in the chat
Full documentation
You can browse the full Dart documentation here: Documentation
If you have any suggestions for including a feature or if something doesn't work, feel free to open a Github issue or to open a pull request, you are more than welcome to contribute!