VOOZH about

URL: https://www.syncfusion.com/flutter-widgets/flutter-chat

โ‡ฑ Flutter Chat | Material chat widget | Syncfusion


Bold BIยฎUnlock stunning dashboards with Bold BIยฎ โ€” 35+ widgets, 150+ data sources, AI agent & more.

Try it for free!
Find anything about our product, documentation, and more.

๐Ÿ‘ Syncfusion Feedback

Flutter is offered as an add-on benefit for UI Component Suite users.

Flutter Chat: Highly Customizable Conversation UI

  • Offers a modern conversation UI to facilitate communication among users.
  • Displays both one-on-one and group conversations.
  • Provides a wide range of customization options for message content, headers, footers, avatars, editors, and action buttons.

Trusted by the worldโ€™s leading companies

Flutter Flutter Chat

Overview

The Flutter Chat widget is a powerful and customizable tool designed to simplify the integration of real-time chat functionality. It allows users to customize the message content, header, footer, avatar, text editor, and action buttons.


Placeholder

Define a custom widget to show when there are no messages in the chat. This feature is especially beneficial for providing users with an engaging or pertinent message that signifies the conversation is currently empty.


Composer

This is the primary text editor where users can compose new chat messages.

Default composer

The text editor allows users to customize its entire appearance by adding hint text, borders, prefix icons, suffix icons, and more.

Builder

Specify a custom widget to serve as a composer, allowing one or more widgets to enable multiple options for composing a message.


Action button

This is used for the Send button. Pressing this action button invokes the callback, where the outgoing user rebuilds the chat widget with their composed message.

Default button

The default action button will be enabled when the default text editor begins composing the message. Additionally, there are options available to customize the UI, including its color, shape, and size.

Builder

Define a custom widget consisting of one or more interactive widgets to serve as action buttons, such as a send button, microphone button, or file attachment button.


Conversation

This UI displays the content of incoming and outgoing messages. Each message includes details such as the message text, time stamp, and author. Additionally, the message content can be extended to include more information about the chat message.

Incoming message

The content of incoming messages can be customized. Change the background color, content shape, and other features according to the message user or specific conditions.

Outgoing message

The content of outgoing messages can be customized. Change the background color, content shape, and other features according to the message user or specific conditions.

Header

The header displays the username of the messageโ€™s author along with the time stamp. Additionally, users can build a custom widget to display more information about the chat message.

Footer

Define a custom widget to display additional information about the chat message, such as the time stamp or message delivery status.

Avatar

The authorโ€™s avatar displays either an image or the initials of their name. By default, if the avatar image source is not defined, the userโ€™s initials will be displayed. Additionally, users can create a custom widget that shows more information about them.

Content

Users can customize the message contentโ€™s background color, content shape, and other features based on the user or other specific conditions. By default, the text content is shown as not selectable, but there is an option to display the message content using a custom widget.


Flutter Chat code example

Easily get started with the Flutter Chat widget using just a few lines of Dart code, as demonstrated below. Also explore our Flutter Chat example, which shows you how to render and configure the Chat widget in Flutter.

import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_chat/chat.dart';

class ChatSample extends StatefulWidget {
 const ChatSample({super.key});

 @override
 State<StatefulWidget> createState() => ChatSampleState();
}

class ChatSampleState extends State<ChatSample> {
 
 late List<ChatMessage> _messages;

 @override
 void initState() {
 _messages = <ChatMessage>[
 ChatMessage(
 text: 'Hello, how can I help you today?',
 time: DateTime.now(),
 author: const ChatAuthor(
 id: 'a2c4-56h8-9x01-2a3d',
 name: 'Incoming user name',
 ),
 ),
 ];
 super.initState();
 }

 @override
 Widget build(BuildContext context) {
 return MaterialApp(
 home: Scaffold(
 body: SfChat(
 messages: _messages,
 outgoingUser: '8ob3-b720-g9s6-25s8',
 composer: const ChatComposer(
 decoration: InputDecoration(
 hintText: 'Type a message',
 ),
 ),
 actionButton: ChatActionButton(
 onPressed: (String newMessage) {
 setState(() {
 _messages.add(ChatMessage(
 text: newMessage,
 time: DateTime.now(),
 author: const ChatAuthor(
 id: '8ob3-b720-g9s6-25s8',
 name: 'Outgoing user name',
 ),
 ));
 });
 },
 ),
 ),
 ),
 );
 }

 @override
 void dispose() {
 _messages.clear();
 super.dispose();
 }
}

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusionยฎ reduces customersโ€™ development time.
Here are some of their experiences.
It is amazing framework, and the support is great
Simple, beautiful, excellent support , multi solutions (.net core, flutter..etc) free licence is great.
Ahmad S,
Executive Manager, Small-Business
An amazing graphing library
The tech support when you run into trouble with one of their packages. I was looking for a Data Visualising solution for cross-platform mobile applications. The Syncfusion Flutter package was am easy to use solution.
Rakshak R,
Freelance Software Engineer, Small-Business

See Real Success Stories

Developers around the world trust Syncfusionโ€™s Essential Studio to simplify complex projects and speed up delivery. With a vast library of UI controls, powerful SDKs, and reliable support, Essential Studio helps teams build enterprise-ready applications with confidence.

Read Our Customer Stories

Industry

Software development


75% Cost reduction

50% Faster development

๐Ÿ‘ Customer review

โ€œIf somebody is looking for a great tool to work with? Yes. I would definitely recommend Syncfusion for anyone who is trying to develop something meaningful.โ€

- Somnath Maji (Founder of Igniatek Consultancy)

Read Story

Industry

Utilities (oil and gas)


๐Ÿ‘ 450+ hours saved

450+ hours saved

Streamlined processes and hours of development effort saved.

๐Ÿ‘ Flexible features

Advanced, flexible features

Empowered users through robust and versatile functionality.

๐Ÿ‘ Customer review

โ€œSyncfusionโ€™s tools have taken care of many things so I can focus on developing the application, instead of developing tools for the application.โ€

- James Athyal (Software developer, McDaniel & Associates Consultants Ltd)

Read Story

Industry

Software and technology


๐Ÿ‘ Time saving

1000+ of hours saved

Accelerated development with enterprise-ready UI components.

๐Ÿ‘ File management

Efficient file management

Streamlined workflows with document libraries without building them from scratch.

๐Ÿ‘ Customer review

โ€œWe really love when the magic happens.โ€

- Irvin Dominin (BUILDER WEB Development Manager at Sistemi)

Read Story

Industry

Software and technology


๐Ÿ‘ Time saving

2 Years of delay avoided

Two years of delays prevented with proactive planning.

๐Ÿ‘ On-time delivery

On-time delivery

Projects delivered on schedule using trusted controls.

๐Ÿ‘ Customer review

โ€œWe are Syncfusion fans because of the way Syncfusion treats the support.โ€

- Dr. Howard Rybko (CEO of Synchrony Digital)

Read Story

Industry

IT services and IT consulting


๐Ÿ‘ Improved performance

Improved performance

Large datasets handled with easy customization and quick debugging.

๐Ÿ‘ Highly customizable

Highly customizable

Plug-and-play controls with quick template integration.

๐Ÿ‘ Customer review

โ€œI will surely recommend Syncfusion to others as a third-party control because I think itโ€™s very easily customizable.โ€

- Jayesh (Technical Team Lead, Capita)

Read Story

Industry

Professional services


๐Ÿ‘ Instant access

Instant access

Quick availability of features and resources.

๐Ÿ‘ Reduced dependencies

Reduced dependencies

Fewer dependencies for faster development.

๐Ÿ‘ Customer review

โ€œWe definitely wanted Syncfusion to help us with our document processing functionality, and we were happy with and satisfied with Syncfusion.โ€

- Arvind Naik (Engineering Lead, Vialto Partners)

Read Story
๏ปฟ

Rated by users across the globe

Awards

Greatnessโ€”itโ€™s one thing to say you have it, but it means more when others recognize it. Syncfusionยฎ is proud to hold the following industry awards.

๐Ÿ‘ Up arrow icon
EXPLORE OUR PRODUCTS
FREE TOOLS
RESOURCES
GET PRODUCTS
UI Kits
SUPPORT
LEARNING
POPULAR FLUTTER COMPONENTS
WHY WE STAND OUT
COMPANY
CONTACT US

CONTACT US

  • Fax: +1 919.573.0306
  • US: +1 919.481.1974
  • UK: +44 20 7084 6215
  • Toll Free (USA):
  • 1-888-9DOTNET