Skip to main content

featureflip 2.2.0 copy "featureflip: ^2.2.0" to clipboard
featureflip: ^2.2.0 copied to clipboard

Flutter SDK for Featureflip — evaluate feature flags in Flutter apps with real-time updates.

Unreleased #

Added #

  • FlagValue.prerequisiteKey. Optional String? on FlagValue carrying the key of the prerequisite flag that caused this flag to serve its off variation. Populated by the server on /v1/client/evaluate and /v1/client/identify responses when reason == "prerequisite-failed"; null for all other reasons. toJson omits the field when null, preserving the existing wire shape for older consumers.

2.0.0 #

BREAKING: Singleton-by-construction refactor.

  • Removed public constructor FeatureflipClient(config:), FeatureflipClient.withHttpClient(), FeatureflipClient.configure(), and FeatureflipClient.shared.
  • Added FeatureflipClient.get(sdkKey, config:) static factory — the only way to obtain a client. Multiple calls with the same SDK key return handles sharing one refcounted core.
  • Added FeatureflipClient.resetForTesting() for test isolation.
  • FeatureflipClient.forTesting() unchanged — continues to create independent test clients.

Migration #

Before:

final client = FeatureflipClient(config: config);
// or
FeatureflipClient.configure(config);
final client = FeatureflipClient.shared;

After:

final client = FeatureflipClient.get('your-sdk-key', config: config);

1.0.0 #

  • Initial release
0
likes
0
points
932
downloads

Documentation

Documentation

Publisher

verified publisherfeatureflip.io

Weekly Downloads

Flutter SDK for Featureflip — evaluate feature flags in Flutter apps with real-time updates.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, shared_preferences

More

Packages that depend on featureflip