Skip to content
pubscout

whatsapp

4.0.1, released 5 months ago by rohitchouhan.com

Flutter client for sending messages, media and catalog items via the WhatsApp Business API.

WASM-ready
$ flutter pub add whatsapp
Source repository

What it does

Provides methods to send text, media, template, flow, catalog and product messages through the WhatsApp Business Cloud API. It also supports business profile updates, resumable uploads and error handling.

AI-written summary of version 4.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to send WhatsApp Business messages directly from a Flutter app
  • You require web support for WhatsApp messaging
  • You want built‑in handling for catalog and flow messages

Skip it when

  • You need a native UI SDK for WhatsApp
  • You prefer a fully offline messaging solution
  • You don't have a WhatsApp Business account or API access token

Strengths

  • Covers most WhatsApp Business API features
  • Web platform support and resumable uploads
  • Improved performance and detailed error handling

Weaknesses

  • Depends on external WhatsApp Cloud API and access token
  • No UI widgets, only low‑level API calls
  • Limited to WhatsApp Business use case

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
2

Obtain a Meta access token and phone number ID, add internet permission, then instantiate WhatsApp(accessToken, fromNumberId).

```dart
const accessToken = 'YOUR_ACCESS_TOKEN';
const fromNumberId = 'YOUR_PHONE_NUMBER_ID';
final whatsapp = WhatsApp(accessToken, fromNumberId);
await whatsapp.sendMessage(phoneNumber: 'RECIPIENT', text: 'Hello');
```

Alternatives

Packages that do the same job and could replace whatsapp.

  • dio

    More feature‑rich HTTP client with interceptors and better error handling

Works with

Packages commonly used together with whatsapp: ones it builds on, ones built on it, and its own family.