Skip to content
pubscout

flagsmith

6.2.1, released 7 weeks ago by flagsmith.com

Flutter Client SDK for Flagsmith feature flags and remote config.

WASM-readyRock solid
$ flutter pub add flagsmith
Source repository

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.

  • cronet_http

    An Android Flutter plugin providing access to the Cronet HTTP client.

  • chopper

    An HTTP client generator for Dart and Flutter using source_gen.

  • http2

    An HTTP/2 implementation in Dart for low-level transport and pooled HTTP/2 requests.

Works with

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