Skip to content
pubscout

feature_flags_toggly

2.0.0, released 3 days ago by toggly.io

Feature flags support for Flutter applications with or without Toggly.io.

$ flutter pub add feature_flags_toggly
Source repository

What it does

Provides feature flags support allowing you to enable and disable features in Flutter applications. It can be used with or without Toggly.io, offering features like cryptographic verification via ECDSA signed definitions and frontend telemetry.

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

Use it when

  • You need to manage feature flags or toggles dynamically in a Flutter application
  • You want to integrate with Toggly.io for remote feature flag management
  • You require cryptographically signed feature flag definitions for security

Skip it when

  • You do not need feature flagging or remote toggling capabilities in your app

Strengths

  • Supports both standalone usage and integration with Toggly.io
  • Cryptographically signed definitions using ECDSA for security
  • Provides built-in widgets and builders like Feature and FeatureGateBuilder

Weaknesses

  • Requires proper key and backend configuration if using signed definitions with Toggly.io
  • Entity-gated flags fail closed without context

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
8

Initialize Toggly in your app startup using Toggly.init with your app key and environment.

await Toggly.init(
  appKey: '<your_app_key>',
  environment: '<your_app_environment>',
  flagDefaults: {
    "ExampleFeatureKey1": true,
  },
);

Alternatives

Packages that do the same job and could replace feature_flags_toggly.

  • configcat_client

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

  • ditto_live

    Edge sync SDK for Flutter enabling offline and online data synchronization across devices.

  • amity_sdk

    Client SDK for Amity Social Cloud to add social features like feeds, groups, and profiles.

Works with

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