Skip to content
pubscout

configcat_client

5.1.0, released 4 weeks ago by configcat.com

Dart and Flutter SDK for the ConfigCat hosted feature flag and toggle service.

WASM-ready
$ flutter pub add configcat_client
Source repository

What it does

Allows managing feature toggles across apps by fetching configuration and evaluating feature flags with user-specific targeting and caching support.

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

Use it when

  • You use ConfigCat as a hosted feature flag management service in your Flutter or Dart app.
  • You need targeted rollouts or percentage-based rollouts based on user attributes.

Skip it when

  • You prefer managing your remote configurations using Firebase Remote Config.
  • You do not need a third-party hosted feature flagging service.

Strengths

  • Supports multiple polling modes and external caching mechanisms like shared preferences.
  • Provides built-in support for user targeting and snapshots.

Weaknesses

  • Requires a paid or hosted third-party service (ConfigCat) to function.
  • Breaking changes in recent minor versions (e.g., Hooks parameter changes in 5.1.0).

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
4

Requires an SDK Key from the ConfigCat dashboard and optional setup for caching.

final client = ConfigCatClient.get(sdkKey: '#YOUR-SDK-KEY#');
final isMyAwesomeFeatureEnabled = await client.getValue(key: 'isMyAwesomeFeatureEnabled', defaultValue: false);
client.close();

Alternatives

Packages that do the same job and could replace configcat_client.

Works with

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