1. Help Center
  2. Phrase Over the Air (OTA)

Flutter SDK installation instructions

Learn how to install the Over the Air SDK for Flutter.


Phrase Over the Air for Flutter lets you update translations in your Flutter app without having to release it every single time. By including our SDK, your app will check for updated translations in Phrase regularly and download them in the background.


Important: this library depends on 0.17.0 version of Flutter's intl library. Please follow this guide to add localizations support to your app.


Add Phrase to your pubspec.yaml:

phrase: ^1.0.1
intl: ^0.17.0
sdk: flutter

generate: true

Just like intl library, Phrase uses code generation to process your ARB files. To keep it up-to-date, just run this command:

flutter pub run phrase

or if you're using build_runner:

flutter pub run build_runner watch


Initialize Phrase in your main.dart file:

import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_gen/gen_l10n/phrase_localizations.dart';
import 'package:phrase/phrase.dart';

void main() {

class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
localizationsDelegates: PhraseLocalizations.localizationsDelegates,
supportedLocales: PhraseLocalizations.supportedLocales,

That's it! You can access your messages just like you did before:


But now your app will check for updated translations in Phrase regularly and download them in the background.


Update behavior 

By default, Phrase will update OTA translations every time the app launches. You can disable this behavior:

checkForUpdates: false);

and trigger updates manually:

Phrase.updateTranslations(context).then((_) => print("Done!"));

Custom app version 

The SDK will use the app version by default to return a release which matches the release constraints for the min and max version. The app version has to use semantic versioning otherwise no translation update will be returned. In case your app does not use semantic versioning it is possible to manually override the app version:

customAppVersion: "1.2.3");

Example app

Please find an example app for our Flutter SDK here:

Phrase SDK for Flutter example