Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .mintlifyignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.github
chat-uikit-flutter
chat-uikit-flutter/**
115 changes: 115 additions & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2123,6 +2123,121 @@
}
]
},
{
"version": "v6‎‎‎‎",
"groups": [
{
"group": " ",
"pages": [
"ui-kit/flutter/v6/overview",
{
"group": "Getting Started",
"pages": [
"ui-kit/flutter/v6/getting-started",
"ui-kit/flutter/v6/flutter-conversation",
"ui-kit/flutter/v6/flutter-one-to-one-chat",
"ui-kit/flutter/v6/flutter-tab-based-chat"
]
},
{
"group": "Features",
"pages": [
{
"group": "Chat",
"pages": [
"ui-kit/flutter/v6/core-features",
"ui-kit/flutter/v6/extensions"
]
},
"ui-kit/flutter/v6/call-features"
]
},
{
"group": "Theming",
"pages": [
"ui-kit/flutter/v6/theme-introduction",
"ui-kit/flutter/v6/color-resources",
"ui-kit/flutter/v6/component-styling",
"ui-kit/flutter/v6/message-bubble-styling",
"ui-kit/flutter/v6/localize",
"ui-kit/flutter/v6/sound-manager"
]
},
{
"group": "Components",
"pages": [
"ui-kit/flutter/v6/components-overview",
"ui-kit/flutter/v6/conversations",
"ui-kit/flutter/v6/users",
"ui-kit/flutter/v6/groups",
"ui-kit/flutter/v6/group-members",
"ui-kit/flutter/v6/message-header",
"ui-kit/flutter/v6/message-list",
"ui-kit/flutter/v6/message-composer",
"ui-kit/flutter/v6/threaded-messages-header",
"ui-kit/flutter/v6/incoming-call",
"ui-kit/flutter/v6/outgoing-call",
"ui-kit/flutter/v6/call-buttons",
"ui-kit/flutter/v6/call-logs",
"ui-kit/flutter/v6/search"
]
},
{
"group": "Reference",
"pages": [
"ui-kit/flutter/v6/methods",
"ui-kit/flutter/v6/events"
]
},
{
"group": "Customization",
"pages": [
"ui-kit/flutter/v6/customization-overview",
"ui-kit/flutter/v6/customization-view-slots",
"ui-kit/flutter/v6/customization-bloc-data",
"ui-kit/flutter/v6/customization-state-views",
"ui-kit/flutter/v6/customization-text-formatters",
"ui-kit/flutter/v6/customization-menu-options",
"ui-kit/flutter/v6/customization-datasource"
]
},
{
"group": "Advanced",
"pages": [
"ui-kit/flutter/v6/message-template",
"ui-kit/flutter/v6/mentions-formatter-guide",
"ui-kit/flutter/v6/shortcut-formatter-guide",
"ui-kit/flutter/v6/custom-text-formatter-guide",
"ui-kit/flutter/v6/troubleshooting"
]
},
{
"group": "Guides",
"pages": [
"ui-kit/flutter/v6/guide-overview",
"ui-kit/flutter/v6/guide-threaded-messages",
"ui-kit/flutter/v6/guide-block-unblock-user",
"ui-kit/flutter/v6/guide-new-chat",
"ui-kit/flutter/v6/guide-message-privately",
"ui-kit/flutter/v6/guide-call-log-details",
"ui-kit/flutter/v6/guide-group-chat",
"ui-kit/flutter/v6/guide-message-agentic-flow",
"ui-kit/flutter/v6/multi-tab-chat-ui-guide"
]
},
{
"group": "Migration Guide",
"pages": [
"ui-kit/flutter/v6/upgrading-from-v5",
"ui-kit/flutter/v6/property-changes"
]
},
"ui-kit/flutter/link/sample",
"ui-kit/flutter/link/changelog"
]
}
]
},
{
"version": "v4‎‎‎‎",
"groups": [
Expand Down
4 changes: 4 additions & 0 deletions ui-kit/flutter/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ sidebarTitle: "Overview"
description: "Prebuilt Flutter widgets for chat, voice, and video calling. Works on iOS and Android."
---

<Note>
🚀 **V6 Beta Available** — The Flutter UI Kit V6 is now available in beta with BLoC state management, clean architecture, and improved performance. [Check out the V6 Overview →](/ui-kit/flutter/v6/overview)
</Note>

<Accordion title="AI Agent Component Spec">

| Field | Value |
Expand Down
131 changes: 131 additions & 0 deletions ui-kit/flutter/v6/call-buttons.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
---
title: "Call Buttons"
---

## Overview

The `CometChatCallButtons` widget provides users with the ability to make calls, access call-related functionalities, and control call settings.

## Usage

### Integration

<Tabs>
<Tab title="Dart">
```dart
import 'package:cometchat_chat_uikit/cometchat_calls_uikit.dart';
import 'package:flutter/material.dart';

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

@override
State<CallButtonsExample> createState() => _CallButtonsExampleState();
}

class _CallButtonsExampleState extends State<CallButtonsExample> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Center(child: CometChatCallButtons()),
),
);
}
}
```
</Tab>
</Tabs>

***

### Actions

##### onError

<Tabs>
<Tab title="Dart">
```dart
CometChatCallButtons(
onError: (e) {
// Handle error
},
)
```
</Tab>
</Tabs>

***

### Events

| Event | Description |
|---|---|
| ccCallAccepted | Triggers when the outgoing call is accepted |
| ccCallRejected | Triggers when the outgoing call is rejected |

<Tabs>
<Tab title="Dart">
```dart
class _YourScreenState extends State<YourScreen> with CometChatCallEventListener {
@override
void initState() {
super.initState();
CometChatCallEvents.addCallEventsListener("unique_listener_ID", this);
}

@override
void dispose() {
super.dispose();
CometChatCallEvents.removeCallEventsListener("unique_listener_ID");
}

@override
void ccCallAccepted(Call call) {
// Handle call accepted
}

@override
void ccCallRejected(Call call) {
// Handle call rejected
}
}
```
</Tab>
</Tabs>

***

## Customization

### Style

<Tabs>
<Tab title="Dart">
```dart
CometChatCallButtons(
callButtonsStyle: CometChatCallButtonsStyle(
voiceCallIconColor: Color(0xFF6852D6),
videoCallIconColor: Color(0xFF6852D6),
voiceCallButtonColor: Color(0xFFEDEAFA),
videoCallButtonColor: Color(0xFFEDEAFA),
voiceCallButtonBorderRadius: BorderRadius.circular(12.5),
videoCallButtonBorderRadius: BorderRadius.circular(12.5),
),
)
```
</Tab>
</Tabs>

### Functionality

| Property | Description | Code |
|---|---|---|
| User | Set User object | `user: User?` |
| Group | Set Group object | `group: Group?` |
| CallSettingsBuilder | Configure call settings | `callSettingsBuilder: CallSettingsBuilder?` |
| Hide Video Call | Hide video call button | `hideVideoCallButton: bool?` |
| Hide Voice Call | Hide voice call button | `hideVoiceCallButton: bool?` |
| Video Call Icon | Custom video call icon | `videoCallIcon: Icon?` |
| Voice Call Icon | Custom voice call icon | `voiceCallIcon: Icon?` |
| Outgoing Call Configuration | Configure outgoing call | `outgoingCallConfiguration: CometChatOutgoingCallConfiguration?` |
Loading