CometChatIncomingCall displays a full-screen overlay when an incoming call is received, showing caller info with accept and reject buttons.
Where It Fits
Typically triggered automatically whenCallNavigationContext.navigatorKey is set in your MaterialApp.
- Dart
Quick Start
Automatic (Recommended)
- Dart
Manual Launch
- Dart
callingExtension set. See Call Features.
Actions
onAccept
- Dart
onDecline
- Dart
onError
- Dart
Functionality
| Property | Type | Description |
|---|---|---|
user | User? | Caller user object |
call | Call | Call object (required) |
callSettingsBuilder | CallSettingsBuilder? | Configure call settings |
height / width | double? | Widget dimensions |
callIcon | Widget? | Custom call type icon |
acceptButtonText | String? | Custom accept button text |
declineButtonText | String? | Custom decline button text |
disableSoundForCalls | bool? | Disable incoming call sound |
customSoundForCalls | String? | Custom sound asset path |
Custom View Slots
Item View
- Dart
Leading View
- Dart
Title View
- Dart
Subtitle View
- Dart
Trailing View
- Dart
Style
- Dart
| Property | Description |
|---|---|
backgroundColor | Background color |
avatarStyle | Caller avatar appearance |
acceptButtonColor | Accept button background |
declineButtonColor | Decline button background |
declineTextColor | Decline button text color |
callIconColor | Call type icon color |
Key V6 Differences
| Aspect | V5 | V6 |
|---|---|---|
| Subtitle | Static String? | Dynamic Widget? Function(BuildContext, Call)? |
| Decline icon | URL-based String? | Widget-based |
| Custom views | Limited | Full titleView, subTitleView, leadingView, trailingView, itemView |
| State management | GetX controller | BLoC (IncomingCallBloc) |
| Removed | theme, avatarStyle, cardStyle, ongoingCallConfiguration | Integrated into main style |
Next Steps
Outgoing Call
Manage outgoing calls
Call Buttons
Add call buttons
Call Features
Complete calling setup
Component Styling
Styling reference