flutter how to Create right to left (rtl) App


I start an App in Flutter with GetX . I want to Create a rtl App and I used flutter_localizations package as this post .

This is my main() code

void main() => runApp(
        localizationsDelegates: [
        supportedLocales: [
          Locale('fa', 'IR'),
        locale: Locale('fa', 'IR'),
        home: HomeScreen(),

and this is my HomeScreen Code

return Scaffold(
      backgroundColor: Colors.white,
      body: SafeArea(
        child: Text(
          "Some Text",
          style: TextStyle(
            color: Colors.black,
            fontSize: 20,
            fontWeight: FontWeight.bold,

and as you see in this picture , debug banner has gone to left side but text steel is in left

enter image description here


your app is rtl correctly, your problem is current body widget, test this as body widget :

body: SafeArea(
  child: Row(
    mainAxisSize: MainAxisSize.max,
    children: [
      Text("Some Text"),

Answered By – DJafari

Answer Checked By – Cary Denson (FlutterFixes Admin)

Leave a Reply

Your email address will not be published.