0

I have a blog app, I need to keep the layout of my app in LTR (because i like the app in English style) but I need to make the language of my posts in RTL only.

How to make the full app using RTL style for posts?

Amir_P
  • 8,322
  • 5
  • 43
  • 92
Ahmed AlNeaimy
  • 343
  • 3
  • 14
  • may link usefult.https://stackoverflow.com/questions/50535185/right-to-left-rtl-in-flutter – lava Feb 12 '22 at 15:52
  • Does this answer your question? [right-to-left (RTL) in flutter](https://stackoverflow.com/questions/50535185/right-to-left-rtl-in-flutter) – Tim Feb 12 '22 at 17:05

1 Answers1

0

If you want to force LTR directionality even when the language is RTL, you can wrap your whole widget tree under MaterialApp using Directionality widget. Try this:

MaterialApp(
  ...
  builder: (context, child) {
    return Directionality(textDirection: TextDirection.ltr, child: child!);
  },
);
Amir_P
  • 8,322
  • 5
  • 43
  • 92