---
title: "Set Up Feature Flags"
description: "With Feature Flags, Sentry tracks feature flag evaluations in your application using the Sentry Dart SDK, keeps an audit log of feature flag changes, and reports any suspicious updates that may have caused an error."
url: https://docs.sentry.io/platforms/dart/guides/flutter/feature-flags/
---

# Set Up Feature Flags for Flutter

## [Prerequisites](https://docs.sentry.io/platforms/dart/guides/flutter/feature-flags.md#prerequisites)

* [Sentry SDK](https://docs.sentry.io/platforms/dart.md#configure) version `9.0.0`.

## [Enable Evaluation Tracking](https://docs.sentry.io/platforms/dart/guides/flutter/feature-flags.md#enable-evaluation-tracking)

If you use a third-party SDK to evaluate feature flags, you can enable Sentry to track those evaluations. Integrations are provider specific, and documentation for supported SDKs is listed below:

* [Firebase Remote Config](https://docs.sentry.io/platforms/dart/integrations/firebase-remote-config.md)

### [Manual Usage](https://docs.sentry.io/platforms/dart/guides/flutter/feature-flags.md#manual-usage)

Call `Sentry.addFeatureFlag` to track feature flag evaluations:

```dart
await Sentry.addFeatureFlag("feature_flag_a", true);
```

Calling this function multiple times with the same flag name overrides the previous value. Evaluations are stored on the current scope and added to the active span. No separate `FeatureFlagsIntegration` is required.
