/syncfusion-flutter:syncfusion-flutter-chatfrom Syncfusion Flutter Widgets
Implements Syncfusion Flutter Chat (SfChat) and AI AssistView (SfAIAssistView) widgets for conversational interfaces in Flutter apps. Use when building chat UIs, AI chatbot interfaces, or messaging screens with support for message bubbles, composers, and action buttons. This skill covers conversation area customization, placeholder screens, theming, RTL support, and AI assistant integration.
Ships in Syncfusion Flutter Widgets. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill covers two related Syncfusion Flutter components for conversational UI: SfChat (Chat widget) and SfAIAssistView (AI AssistView widget). While they share many visual and configuration features, they serve different primary purposes.
Use this skill when you need to:
| Feature | SfChat | SfAIAssistView |
|---|---|---|
| Primary Purpose | Multi-user messaging | AI assistant interaction |
| Message Types | Incoming/Outgoing | Request/Response |
| User Identification | outgoingUser property | Author in each message |
| Suggestions | On any message | Only on response messages |
| Toolbar Items | ❌ Not supported | ✅ Response toolbar support |
| Loading Indicator | ❌ Not included | ✅ Response loading builder |
| Use Case | Chat apps, messaging | AI chatbots, assistants |
| Message Classes | ChatMessage | AssistMessage |
| Composer Classes | ChatComposer | AssistComposer |
| Action Button Classes | ChatActionButton | AssistActionButton |
📄 Read: references/getting-started.md
📄 For Chat: references/chat-overview.md
📄 For AI AssistView: references/aiassistview-overview.md
📄 Read: references/conversation-area.md
📄 Read: references/composer.md
📄 Read: references/action-button.md
📄 Read: references/placeholder.md
📄 Read: references/theming.md
📄 Read: references/right-to-left.md
📄 Read: references/common-patterns.md
import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_chat/chat.dart';
class MyChat extends StatefulWidget {
@override
State<MyChat> createState() => _MyChatState();
}
class _MyChatState extends State<MyChat> {
List<ChatMessage> _messages = <ChatMessage>[];
@override
void initState() {
super.initState();
_messages = <ChatMessage>[
ChatMessage(
text: 'Hi! How can I help you today?',
time: DateTime.now(),
author: const ChatAuthor(
id: '123-001',
name: 'John Doe',
),
),
ChatMessage(
text: 'I need help with my order.',
time: DateTime.now(),
author: const ChatAuthor(
id: '123-002',
name: 'Jane Smith',
),
),
];
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('Chat')),
body: SfChat(
messages: _messages,
outgoingUser: '123-002',
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: '123-002',
name: 'Jane Smith',
),
),
);
});
},
),
),
);
}
}
import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_chat/assist_view.dart';
class MyAIAssistView extends StatefulWidget {
@override
State<MyAIAssistView> createState() => _MyAIAssistViewState();
}
class _MyAIAssistViewState extends State<MyAIAssistView> {
List<AssistMessage> _messages = <AssistMessage>[];
void _generateAIResponse(String userRequest) async {
// Call your AI service here
final String aiResponse = await _getAIResponse(userRequest);
setState(() {
_messages.add(
AssistMessage.response(
data: aiResponse,
time: DateTime.now(),
author: const AssistMessageAuthor(
id: 'ai-001',
name: 'AI Assistant',
),
),
);
});
}
Future<String> _getAIResponse(String request) async {
// Connect with your preferred AI service
// Example: OpenAI, Google AI, Azure AI, etc.
await Future.delayed(Duration(seconds: 2)); // Simulate API call
return 'This is a response to: $request';
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('AI Assistant')),
body: SfAIAssistView(
messages: _messages,
composer: const AssistComposer(
decoration: InputDecoration(
hintText: 'Ask me anything',
),
),
actionButton: AssistActionButton(
onPressed: (String userRequest) {
setState(() {
_messages.add(
AssistMessage.request(
data: userRequest,
time: DateTime.now(),
author: const AssistMessageAuthor(
id: 'user-001',
name: 'User',
),
),
);
_generateAIResponse(userRequest);
});
},
),
placeholderBuilder: (BuildContext context) {
return const Center(
child: Text(
'What can I help you with today?',
style: TextStyle(fontSize: 16),
),
);
},
),
);
}
}
SfChat(
messages: <ChatMessage>[
ChatMessage(
text: 'Which programming language should I learn?',
time: DateTime.now(),
author: const ChatAuthor(id: '1', name: 'Alice'),
),
ChatMessage(
text: 'It depends on your goals. What interests you?',
time: DateTime.now(),
author: const ChatAuthor(id: '2', name: 'Bob'),
suggestions: <ChatMessageSuggestion>[
const ChatMessageSuggestion(data: 'Web Development'),
const ChatMessageSuggestion(data: 'Mobile Apps'),
const ChatMessageSuggestion(data: 'Data Science'),
const ChatMessageSuggestion(data: 'Game Development'),
],
),
],
outgoingUser: '1',
)
void _generateResponse(String request) async {
final String response = await _getAIResponse(request);
setState(() {
_messages.add(
AssistMessage.response(
data: response,
time: DateTime.now(),
author: const AssistMessageAuthor(id: 'ai', name: 'AI'),
toolbarItems: <AssistMessageToolbarItem>[
const AssistMessageToolbarItem(
content: Icon(Icons.thumb_up_outlined),
tooltip: 'Like',
),
const AssistMessageToolbarItem(
content: Icon(Icons.thumb_down_outlined),
tooltip: 'Dislike',
),
const AssistMessageToolbarItem(
content: Icon(Icons.copy),
tooltip: 'Copy',
),
const AssistMessageToolbarItem(
content: Icon(Icons.restart_alt),
tooltip: 'Regenerate',
),
],
),
);
});
}
SfAIAssistView(
messages: _messages,
onToolbarItemSelected: (bool selected, int messageIndex,
AssistMessageToolbarItem item, int toolbarItemIndex) {
// Handle toolbar action (like, dislike, copy, etc.)
print('Toolbar item selected at index $toolbarItemIndex');
},
)
messages - List of ChatMessage objects to displayoutgoingUser - ID of the user sending messages (distinguishes incoming/outgoing)composer - ChatComposer for text inputactionButton - ChatActionButton for sending messagesplaceholderBuilder - Custom widget for empty stateincomingMessageSettings - Settings for incoming messagesoutgoingMessageSettings - Settings for outgoing messagesmessageHeaderBuilder - Custom header for each messagemessageFooterBuilder - Custom footer for each messagemessageContentBuilder - Custom content for each messagemessageAvatarBuilder - Custom avatar for each messagemessages - List of AssistMessage objects (request/response)composer - AssistComposer for text inputactionButton - AssistActionButton for sending requestsplaceholderBuilder - Custom widget for empty staterequestMessageSettings - Settings for request messagesresponseMessageSettings - Settings for response messagesmessageHeaderBuilder - Custom header for each messagemessageFooterBuilder - Custom footer for each messagemessageContentBuilder - Custom content for each messagemessageAvatarBuilder - Custom avatar for each messageresponseLoadingBuilder - Custom loading indicator while AI respondsonToolbarItemSelected - Callback when toolbar item is tappedonSuggestionItemSelected - Callback when suggestion chip is tappedChatMessage:
text - Message contenttime - Timestamp of the messageauthor - ChatAuthor with id, name, and avatarsuggestions - List of ChatMessageSuggestion itemsAssistMessage:
data - Message contenttime - Timestamp of the messageauthor - AssistMessageAuthor with id, name, and avatarsuggestions - List of AssistMessageSuggestion items (response only)toolbarItems - List of AssistMessageToolbarItem (response only)minLines - Minimum lines in text editor (default: 1)maxLines - Maximum lines in text editor (default: 6)decoration - InputDecoration for stylingmargin - Space around the composertextStyle - Text style for inputbuilder - Custom composer widgetchild - Custom widget for buttononPressed - Callback when button is pressedtooltip - Tooltip textforegroundColor - Icon/text colorbackgroundColor - Button background colorfocusColor - Color when focusedhoverColor - Color when hoveredsplashColor - Ripple effect colorelevation - Shadow elevationfocusElevation - Elevation when focusedhoverElevation - Elevation when hoveredhighlightElevation - Elevation when pressedmouseCursor - Cursor style on hovershape - Button shape and bordermargin - Space around buttonsize - Button dimensionsshowAuthorName - Show/hide author nameshowTimestamp - Show/hide timestampshowAuthorAvatar - Show/hide avatartimestampFormat - DateFormat for timestampbackgroundColor - Message background colortextStyle - Message text styleheaderTextStyle - Header text styleshape - Message bubble shapewidthFactor - Message width relative to screen (0-1)avatarSize - Avatar dimensionsmargin - Space around messagepadding - Padding inside messageavatarPadding - Padding around avatarheaderPadding - Padding around headerfooterPadding - Padding around footerFor SfChat: Customer support chat, team messaging, social messaging, live chat support with multi-user conversations and incoming/outgoing message patterns.
For SfAIAssistView: AI chatbots, AI assistants, help bots, Q&A interfaces with request/response patterns, toolbar items, and loading indicators.
references/action-button.md (opens in a new tab)references/aiassistview-overview.md (opens in a new tab)references/chat-overview.md (opens in a new tab)references/common-patterns.md (opens in a new tab)references/composer.md (opens in a new tab)references/conversation-area.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/placeholder.md (opens in a new tab)references/right-to-left.md (opens in a new tab)references/theming.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-flutterOther plugins' skills for the same job
14 skills in this plugin
/syncfusion-flutter-barcode-generatorImplements Syncfusion Flutter Barcode Generator (SfBarcodeGenerator) for generating 1D and 2D barcodes in Flutter apps. Use when working with QR codes, Data Matrix, Code128, EAN, UPC, or other machine-readable barcode formats. This skill covers barcode types, customization, sizing, text display, and integration into product labels, ticketing, or inventory systems./syncfusion-flutter-calendar-datepickerImplements Syncfusion Flutter Calendar (SfCalendar) and Date Range Picker (SfDateRangePicker) widgets for date and scheduling UIs in Flutter apps. Use when building appointment calendars, booking systems, date range selectors, or event scheduling interfaces. This skill covers calendar views, recurring events, date navigation, localization, callbacks, and customization./syncfusion-flutter-cartesian-chartsImplements Syncfusion Flutter Cartesian Charts (SfCartesianChart) for a wide range of 2D chart types in Flutter apps. Use when working with line, column, bar, area, spline, scatter, bubble, financial, stacked, or histogram charts. This skill covers axis types (NumericAxis, CategoryAxis, DateTimeAxis), zoom and pan, tooltip, trackball, legend, annotations, technical indicators, trendlines, and chart export.