You want users to talk to a support assistant inside your Flutter app. The official vapi package and the widget_chat voice call both do it, from opposite ends. vapi is a call client for the Vapi voice platform: it opens the call and sends you events, and you build the screen. widget_chat is a finished support chat with a voice call inside it.
Everything below can be checked in public docs. The facts come from vapi 0.1.0 (published 25 June 2025) and widget_chat 0.0.29 (published 18 November 2026), the latest versions on pub.dev on 4 December 2026.
Side by side
| Criterion | vapi 0.1.0 |
widget_chat 0.0.29 |
|---|---|---|
| What you get | A call client: start, stop, mute, send, an event stream | A chat screen with a mic button, or VoiceCallView as a voice-only screen |
| Pulls in | daily_flutter ^0.31.0, permission_handler ^11.3.1, http, web |
One package, voice included since 0.0.23 |
| Stated minimums | iOS 13.0, Android SDK 24, both because of daily_flutter |
See the package page on pub.dev |
| Assistant configured | At Vapi (an assistant ID), or inline as a map with model and voice providers | In the Widget-Chat dashboard, Voice section |
| Speech and model stack | You choose transcriber, model and voice providers | Managed for you, you pick a voice name |
| Text chat in the same thread | No chat screen in the SDK. send adds a message to the live call |
Yes: same widget, same conversation as text chat |
| Captions | Transcripts arrive as message events, you draw them |
Live captions built in, default set per project |
| Product cards during the call | You build them from function call messages | Built in, shown while the assistant speaks |
| Barge-in | The README describes the agent stopping when it hears speech | Yes, the user can interrupt mid-sentence |
| Key in the app | A Vapi public key | A project key, provider keys stay server-side |
| Phone-number calls | Yes, a core part of the Vapi platform | No, in-app only |
What each package pulls in
The Vapi README says the package "relies heavily" on daily_flutter, the Daily WebRTC client, and sends you to that package's page for current platform constraints. Two of them are stated directly: iOS 13.0 or higher and Android SDK 24 or higher. The pubspec also needs Dart 3.6 and Flutter 3.16. On web there is nothing to add: the package loads the Vapi Web SDK from jsdelivr at a pinned version.
It also depends on permission_handler, which brings a Podfile step on iOS (shown below).
widget_chat is one dependency. Voice ships in the same package as the chat, from version 0.0.23.
Mic permission setup for both
Both need the same two declarations. In ios/Runner/Info.plist:
<key>NSMicrophoneUsageDescription</key>
<string>The microphone is used to talk to the support assistant.</string>
In android/app/src/main/AndroidManifest.xml:
<uses-permission android:name="android.permission.RECORD_AUDIO" />
For widget_chat, that is the whole list. The Vapi README asks for more:
- Android permissionsAdd INTERNET and MODIFY_AUDIO_SETTINGS next to RECORD_AUDIO in the manifest.
- Android minSdkSet minSdk = 24 in build.gradle.kts.
- iOS targetSet platform :ios, '13.0' in the Podfile.
- Podfile macroAdd PERMISSION_MICROPHONE=1 to GCC_PREPROCESSOR_DEFINITIONS in post_install, as permission_handler requires.
- Background audioThe README recommends adding the audio background mode to the app's capabilities.
The Podfile block from the Vapi README:
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
'PERMISSION_MICROPHONE=1',
]
end
end
end
Starting a call with the vapi Flutter SDK
The README's usage section still shows an older Vapi('your-public-key') class. The package's library docs and its example app use VapiClient, which returns a call object. This follows the example app:
import 'package:flutter/material.dart';
import 'package:vapi/vapi.dart';
Future<void> main() async {
// Needed on web so the Vapi Web SDK is loaded. Instant on mobile.
await VapiClient.platformInitialized.future;
runApp(const MyApp());
}
final vapiClient = VapiClient('your-public-key');
VapiCall? currentCall;
Future<void> startSupportCall() async {
final call = await vapiClient.start(assistantId: 'your-assistant-id');
currentCall = call;
call.onEvent.listen((event) {
if (event.label == 'call-start') debugPrint('call started');
if (event.label == 'call-end') currentCall = null;
// Speech statuses, function calls and transcripts arrive here.
if (event.label == 'message') debugPrint('${event.value}');
});
}
Future<void> endSupportCall() async => currentCall?.stop();
You can also pass an inline assistant map with a model and a voice provider, or assistantOverrides with variableValues for per-user data. call.setMuted(true) mutes the mic.
That is the whole surface. The call screen, the caption list, the card that appears when the assistant mentions a product, the error state when the mic is denied: you write those from the message events.
The same feature with VoiceCallView
With widget_chat, the mic button is already in the chat composer. For a voice-only screen, push VoiceCallView:
import 'package:flutter/material.dart';
import 'package:widget_chat/widget_chat.dart';
void openVoiceSupport(BuildContext context, String userId) {
final messenger = ScaffoldMessenger.of(context);
Navigator.of(context).push(
MaterialPageRoute<void>(
builder: (_) => VoiceCallView(
configuration: BotConfiguration(
projectSecretKey: 'your-project-secret-key',
userID: userId,
),
captionsDefault: true,
onEnded: (outcome) {
if (!outcome.startedSuccessfully) {
final denied = outcome.error is VoiceMicPermissionDenied;
messenger.showSnackBar(
SnackBar(
content: Text(
denied
? 'Allow the microphone in Settings.'
: 'The call could not start.',
),
),
);
return;
}
for (final caption in outcome.captions) {
debugPrint('${caption.isUser ? 'user' : 'bot'}: ${caption.text}');
}
},
),
),
);
}
The call screen, live captions, barge-in and on-screen product cards are part of the view. The voice name, the maximum session length and the captions default are set per project in the dashboard's Voice section. Voice minutes come from a monthly pool on your plan.
Where the assistant lives and where the keys live
A Vapi assistant is defined at Vapi, with a transcriber, a model and a voice you pick from several providers, or you send the definition inline from the app. The app carries a Vapi public key. Vapi's API key docs say public keys are meant for client code and can be restricted to allowed origins and allowed assistants, and that the private key must stay on a server. Restrict the public key before you ship.
A Widget-Chat assistant is the one you already configured for text chat: same content, same tools, same dashboard. The app carries the project key, and the speech and model provider keys stay server-side.
Voice as a separate build (vapi)
- Assistant defined at Vapi, separate from any text chat you run
- You build the call screen, captions and cards from events
- Podfile macro, minSdk 24 and extra manifest permissions
- Text chat needs its own UI and its own history
Voice as one mode of the chat (widget_chat)
- One assistant for typed and spoken questions
- Call screen, captions and product cards ship in the package
- Two permission declarations
- Spoken turns land in the same conversation as text
When Vapi is the better pick
Pick Vapi when:
- You need phone-number calling. Vapi assigns assistants to phone numbers for inbound calls and places outbound calls through its API.
widget_chatdoes none of that. - You want to choose your own stack. Vapi lets you pick the transcriber, the model and the voice provider, and bring your own provider keys. Widget-Chat manages the stack and gives you a voice name to choose.
- Voice is the product. If you are building a voice-first app with a custom call experience, a bare call client with an event stream is the right starting point.
- You want the same assistant on the phone and in the app.
Pick widget_chat when voice is one way to reach the same support assistant users can also type to, and you would rather not build a call screen, a caption view and a card renderer.
For the same comparison against another voice SDK, see ElevenLabs Flutter alternative. FlutterFlow users can follow the FlutterFlow voice assistant guide, which covers the custom widget setup (it needs a paid FlutterFlow plan).
Add the chat and the voice call in one widget
widget_chat ships the finished chat screen, with the mic button in the composer. Add it with flutter pub add widget_chat, declare the two mic permissions, and drop in the widget:
ChatWidget(
configuration: BotConfiguration(
projectSecretKey: 'your-project-secret-key',
userID: 'user-123',
),
)
Enable voice in the dashboard's Voice section and the mic appears. The free plan needs no credit card: create your project.
- vapi: call client on daily_flutter, iOS 13.0+, Android SDK 24+, you build the UI
- widget_chat: chat plus voice call in one package, captions and product cards built in
- Both need NSMicrophoneUsageDescription and RECORD_AUDIO
- Vapi for phone numbers and your own speech and model stack
- widget_chat when voice is one mode of an in-app support chat





