flagsmith
6.2.1, released 7 weeks ago by flagsmith.com
Flutter Client SDK for Flagsmith feature flags and remote config.
What it does
Allows you to manage feature flags and remote config across multiple projects, environments, and organisations. It supports experiments, tracking conversions, and local caching.
AI-written summary of version 6.2.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to manage feature flags in your Flutter application using Flagsmith.
- You want to run experiments and track user exposure or conversion events.
Skip it when
- you are using a different feature flag provider instead of Flagsmith.
- You do not need remote configuration or feature flagging capabilities.
Strengths
- Supports experiments with automatic variation serving and event tracking.
- Provides local caching using shared preferences for offline resilience.
Weaknesses
- Tied specifically to the Flagsmith backend service.
- Network failures for event tracking are dropped after a single retry.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 8
Initialize with a client-side environment API key using FlagsmithClient.init.
final flagsmith = await FlagsmithClient.init(
apiKey: 'YOUR_CLIENT_SIDE_ENVIRONMENT_KEY',
config: const FlagsmithConfig(enableEvents: true),
);
final user = Identity(identifier: 'user_42');
await flagsmith.getFeatureFlags(user: user);Alternatives
Packages that do the same job and could replace flagsmith.
- matrix
Matrix (matrix.org) SDK written in Dart.
88Compare - cronet_http
An Android Flutter plugin providing access to the Cronet HTTP client.
87Compare - chopper
An HTTP client generator for Dart and Flutter using source_gen.
92Compare - http2
An HTTP/2 implementation in Dart for low-level transport and pooled HTTP/2 requests.
91Compare
Works with
Packages commonly used together with flagsmith: ones it builds on, ones built on it, and its own family.
- cryptoflagsmith depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- json_annotationflagsmith depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- shared_preferencesflagsmith depends on itFlutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
- rxdartflagsmith depends on itImplementation of the ReactiveX API for asynchronous programming leveraging native Dart Streams.
- dioflagsmith depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- pointycastleflagsmith depends on itA Dart library providing a wide range of cryptographic algorithms and primitives.
- flutter_client_sseflagsmith depends on itConsume Server-Sent Events (SSE) APIs with support for GET and POST requests.