Why doesn't text direction change for RTL languages in Flutter?

Flutter automatically sets the appropriate text direction according to the selected locale (see example).
In case you have this problem and you don't know what the cause is, check if somewhere above in the widget tree you have explicitly specified the text direction (e.g. usage of the Directionality widget) and if your localization library requires some additional settings.

Flutter internationalization tutorial:

Copyrights 2024 © Localizely