> ## Documentation Index
> Fetch the complete documentation index at: https://developers.phrase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Flutter

> OTA SDK for Flutter apps

<Card title="phrase/phrase-flutter-sdk" icon="github" horizontal href="https://github.com/phrase/phrase-flutter-sdk" />

<Card title="phrase/flutter_sdk_example" icon="github" horizontal href="https://github.com/phrase/flutter_sdk_example" />

The Phrase Flutter SDK delivers OTA translation releases to Flutter apps across all supported platforms: iOS, Android, Linux, macOS, and Windows. The example repository demonstrates a full integration.

## Setup

1. Add the Phrase Flutter SDK to your `pubspec.yaml`

2. Run the Phrase code generator:

   ```bash theme={null}
   dart run phrase
   ```

3. Create a distribution in Phrase Strings and copy the Distribution ID and environment secret from the dashboard or via the [Distributions API](/en/api/strings/introduction)

4. Initialize the SDK in `main.dart` before rendering any strings:

   ```dart theme={null}
   Phrase.setup("YOUR_DISTRIBUTION_ID", "YOUR_ENVIRONMENT_SECRET");
   ```

5. Run your app:

   ```bash theme={null}
   flutter run
   ```
