Skip to content
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

Support Rtl (Arabic Text) #77

Closed
abd3llatif opened this issue Mar 29, 2019 · 6 comments
Closed

Support Rtl (Arabic Text) #77

abd3llatif opened this issue Mar 29, 2019 · 6 comments
Labels
enhancement New feature or request
Milestone

Comments

@abd3llatif
Copy link

Html widget need to support RTL . LTR

@ahmadkhedr
Copy link

Just use Directionality widget over it and set the text direction to rtl ....I am using it and it works fine :)

@Sub6Resources
Copy link
Owner

Perhaps I'll consider adding an option in the HTML widget. Thanks!

@Sub6Resources Sub6Resources added the enhancement New feature or request label Apr 8, 2019
@Sub6Resources Sub6Resources added this to the Next Version milestone May 14, 2019
@Sub6Resources
Copy link
Owner

I'm going to leave this as is, for users to implement by following the suggestion provided by ahmadkhedr so that the Widget behaves as expected when wrapped in a Directionality widget.

@nordine0
Copy link

after version ^0.9.6 Directionality is not working any more.

Code Example:

Directionality( textDirection: TextDirection.rtl, child: Html( padding: EdgeInsets.symmetric(vertical: 12.0), data: widget.message.message, defaultTextStyle: TextStyle(fontSize: 16.0), onLinkTap: (url) { _openLink(url); }, )

Flutter Doctor:
[√] Flutter (Channel stable, v1.5.4-hotfix.2, on Microsoft Windows [Version 10.0.17763.475], locale en-US)
• Flutter version 1.5.4-hotfix.2
• Framework revision 7a4c33425d (4 weeks ago), 2019-04-29 11:05:24 -0700
• Engine revision 52c7a1e849
• Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

@dvird
Copy link

dvird commented Jul 14, 2019

Directionality didn't fully help me,
You also need to add customTextAlign as I did.

Html( data: snapshot.data.data, customTextAlign: (_)=>TextAlign.right, ),

@mahdibagjani
Copy link

Directionality didn't fully help me,
You also need to add customTextAlign as I did.

Html( data: snapshot.data.data, customTextAlign: (_)=>TextAlign.right, ),

It's work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants