Skip to content
pubscout

flutter_curl

0.9.4, released 3 weeks ago by an unverified publisher

Flutter plugin to use libcurl for HTTP calls in Android, iOS and macOS.

$ flutter pub add flutter_curl
Source repository

What it does

Provides a Flutter plugin using libcurl via FFI for making HTTP requests in Android, iOS, and macOS apps. Supports advanced connectivity features like HTTP2, ALPN, Brotli compression, and experimental HTTP3.

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

Use it when

  • You need advanced networking features like HTTP2, ALPN, or Brotli compression not available in standard dart:io.
  • You want to use libcurl bindings via FFI for HTTP operations on Android, iOS, and macOS.

Skip it when

  • You need a pure Dart HTTP client without native library binaries.
  • You are targeting platforms other than Android, iOS, and macOS.

Strengths

  • Supports HTTP2 and ALPN automatic upgrades.
  • Supports Brotli compression and experimental HTTP3.
  • Runs cURL APIs in a separate isolate using dart:Ffi to prevent app blocking.

Weaknesses

  • Relies on pre-built native binaries for Android, iOS, and macOS which can increase app size.
  • Experimental support for HTTP3 and alt-svc.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
3

Downloads Curl binaries via Gradle for Android and via pod install/SPM for iOS. Android minimum SDK is 21 and iOS minimum version is 12.2.

Client client = Client(verbose: true);
await client.init();
final res = await client.send(Request(method: "GET", url: "https://ajinasokan.com/"));
print(res.text());

Alternatives

Packages that do the same job and could replace flutter_curl.

  • http

    A pure Dart portable HTTP client backed by dart:io.

  • dio

    A powerful HTTP client for Dart with interceptors, global configuration, and FormData support.

Works with

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