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
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.
- firebase_remote_config
Choose this if you prefer using Firebase for managing your remote configurations and feature flags.
95Compare
Works with
Packages commonly used together with configcat_client: ones it builds on, ones built on it, and its own family.
- cryptoconfigcat_client depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- pub_semverconfigcat_client depends on itVersions and version constraints implementing pub's versioning policy.
- json_annotationconfigcat_client depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- dioconfigcat_client depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.