-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to change the directionality of text and text-direction-sensitive render objects #56
Comments
Why do you want to change the directionality only for some screens, such as dialogs? adaptive_dialog/example/lib/app.dart Line 25 in eeba060
adaptive_dialog will follow it. Is that not enough?
builder: (context, child) => Directionality(
textDirection: TextDirection.rtl,
child: child!,
), |
Thank you @mono0926 . I am actually aware of this and my app already handled that for Hebrew language. What I needed to do in the dialog was to enforce direction ltr instead of the global directionality because the text I intend to display is in English. Cases of changing direction for a particular screen or widget is possible and I believe it is the reason why the Flutter team added that support for widgets (e.g Text widget) in Flutter. |
Examples:
|
In my app, I need to change the text direction of the title and the content in the dialog but I could not because there is no argument provided for text direction.
Expected Behaviour
The dialog should have support for text direction by making Directionality the root child of the dialog.
The text was updated successfully, but these errors were encountered: