Guide · Arabic & RTL

Flutter in Arabic, for Syrian users.

Flutter is our first choice for mobile apps, and its right-to-left support is good. Three things still trip teams up: Egyptian month names instead of Syrian ones, a pound sign on Syrian prices, and a name clash in package:intl. Here is the setup we tested.

Updated 16 November 2026Sources checked 16 November 2026Reviewed by Eng. Hasan Kassas

The short answer

Give MaterialApp the locale ar_SY and the GlobalMaterialLocalizations delegates, and every widget below it becomes right-to-left: rows start from the right, back arrows point the other way, and text aligns to the right. You do not wrap screens in Directionality yourself.

What does not follow: package:intl ships no data for ar_SY, so it silently falls back to plain ar. Dates come out as نوفمبر instead of تشرين الثاني, including in Material's date picker, and NumberFormat.simpleCurrency prints a £ sign for SYP. Both have short fixes below. We ran every snippet here with flutter test on Flutter 3.44, Dart 3.12 and intl 0.20.2 on 16 November 2026.

Step 1

Turn on Arabic for the whole app

Add flutter_localizations (from the SDK) and intl to pubspec.yaml, then build the app with the Syrian Arabic locale. These are the imports the snippets on this page use:

import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:intl/date_symbol_data_custom.dart';
import 'package:intl/date_symbol_data_local.dart';
import 'package:intl/date_symbols.dart';
import 'package:intl/date_time_patterns.dart';
import 'package:intl/intl.dart' hide TextDirection; // intl has its own TextDirection

const syrianArabic = Locale('ar', 'SY');

/// Locale ar_SY + the Material/Cupertino translations. This alone makes every widget RTL.
MaterialApp syrianApp({required Widget home}) => MaterialApp(
      locale: syrianArabic,
      supportedLocales: const [syrianArabic, Locale('en')],
      localizationsDelegates: GlobalMaterialLocalizations.delegates,
      home: home,
    );

Tested: under this MaterialApp, Directionality.of(context) is TextDirection.rtl and the first child of a Row sits to the right of the second.

What flips by itself

Layout in RTL: automatic vs your job

In an RTL appWhat to write instead
Row, Wrap, horizontal ListViewOrder reverses automaticallyNothing
EdgeInsets.only(left: 16)Stays on the left, the wrong sideEdgeInsetsDirectional.only(start: 16)
Alignment.centerLeftStays on the leftAlignmentDirectional.centerStart
Positioned(left: 0)Stays on the leftPositionedDirectional(start: 0)
Icons.arrow_back, Icons.arrow_forwardMirror automatically (matchTextDirection is true)Nothing
Your own arrow images or SVGsDo not mirrorFlip them yourself when Directionality.of(context) is rtl
Phone, card and code fieldsTurn RTL with the apptextDirection: TextDirection.ltr on the field
Step 2

Show Syrian month names, not Egyptian ones

In Syria the months are كانون الثاني، شباط، آذار and so on. Browsers know this for ar-SY, but package:intl has no ar_SY data: DateFormat.localeExists('ar_SY') returns false and every date falls back to ar, which prints نوفمبر. Register the Syrian names once, in main() before runApp:

const levantineMonths = [
  'كانون الثاني', 'شباط', 'آذار', 'نيسان', 'أيار', 'حزيران',
  'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول',
];

/// package:intl has no ar_SY data: "ar_SY" silently falls back to "ar" (نوفمبر).
/// Call once in main(), before runApp, to register the Syrian month names.
Future<void> registerSyrianArabic() async {
  await initializeDateFormatting('ar');
  final map = (dateTimeSymbolMap()['ar'] as DateSymbols).serializeToMap()
    ..['NAME'] = 'ar_SY'
    ..['MONTHS'] = levantineMonths
    ..['STANDALONEMONTHS'] = levantineMonths
    ..['SHORTMONTHS'] = levantineMonths
    ..['STANDALONESHORTMONTHS'] = levantineMonths;
  initializeDateFormattingCustom(
    locale: 'ar_SY',
    symbols: DateSymbols.deserializeFromMap(map),
    patterns: dateTimePatternMap()['ar'],
  );
}

Tested: before registering, DateFormat.MMMM('ar_SY') gives نوفمبر. After, it gives تشرين الثاني, yMMMMd gives "5 كانون الثاني 2026", Material's formatMonthYear uses the Syrian names too, and plain ar is unchanged.

Step 3

Prices in Syrian pounds without a £ sign

NumberFormat.simpleCurrency(locale: 'ar_SY', name: 'SYP') prints "1,251 £": the wrong sign, and rounded to whole pounds. Since the redenomination, prices in new pounds can need decimals. Set the symbol and the decimals yourself:

/// Prices in Syrian pounds. simpleCurrency(name: 'SYP') prints "£", so set the symbol yourself.
String formatSyp(num amount) =>
    NumberFormat.currency(locale: 'ar', name: 'SYP', symbol: 'ل.س.', decimalDigits: 2).format(amount);

Tested: formatSyp(1250.5) contains "1,250.50" and "ل.س." and no £. Note that Dart's ar uses Western digits (1,250) while browsers use Arabic-Indic digits (١٬٢٥٠) for ar-SY, so pick one on purpose. Our Syrian pound guide covers the new lira in detail.

Step 4

Keep phone numbers left-to-right

A phone number inside an Arabic form should still read left to right, or +963 jumps to the wrong end while the user types. Force the field's direction and align it with the Arabic fields around it:

/// A phone number stays left-to-right inside an Arabic form, aligned with the fields around it.
class SyrianPhoneField extends StatelessWidget {
  const SyrianPhoneField({super.key, this.controller});
  final TextEditingController? controller;

  @override
  Widget build(BuildContext context) => TextField(
        controller: controller,
        keyboardType: TextInputType.phone,
        textDirection: TextDirection.ltr,
        textAlign: TextAlign.end,
        decoration: const InputDecoration(labelText: 'رقم الموبايل'),
      );
}

Tested: the field's EditableText has textDirection ltr, textAlign end and the phone keyboard. To validate what users type, see the Syrian phone number checker.

Pitfalls

What we hit while testing

  • "Member not found: 'ltr'" at compile time. package:intl exports its own TextDirection, which hides Flutter's. Import it as import 'package:intl/intl.dart' hide TextDirection; in every file that also uses Flutter widgets.
  • The ar_SY fallback is silent. Nothing warns you that dates are coming out in Egyptian names; only a test or a Syrian user will tell you. Keep a test that checks one Syrian month name.
  • Physical padding and alignment (left, right) survive into RTL untouched. Search the codebase for EdgeInsets.only(left and Alignment.centerLeft before an Arabic release.
  • User-written text can start in either language. Decide its direction from the first strong letter, the same rule our RTL web guide implements and tests, and pass it to the Text widget.
  • Run your widget tests in both ar_SY and en. Layout bugs in RTL rarely show up if the team only ever runs the app in English.
FAQ

Common questions

Set the MaterialApp locale to an Arabic locale such as ar_SY and add GlobalMaterialLocalizations.delegates. Flutter then sets Directionality to RTL for every widget in the app, so rows, icons and text alignment flip without extra code.

Sources

Where these facts come from

  1. Internationalizing Flutter appsFlutter documentation · accessed 16 Nov 2026
  2. Directionality classFlutter API reference · accessed 16 Nov 2026
  3. EdgeInsetsDirectional classFlutter API reference · accessed 16 Nov 2026
  4. IconData.matchTextDirectionFlutter API reference · accessed 16 Nov 2026
  5. intl packagepub.dev · version 0.20.2
  6. initializeDateFormattingCustomintl API reference · accessed 16 Nov 2026

Behaviour checked with flutter test (Flutter 3.44, Dart 3.12, intl 0.20.2) on 16 November 2026. Re-run the tests after upgrading intl: if it ever ships ar_SY data, the month-name fix becomes unnecessary.

Building a Flutter app for Syrian users?

Tell us about it. We build Arabic-first apps in Flutter and can review yours.