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

示例语言最好换一下 #1

Closed
ifredom opened this issue Apr 4, 2020 · 3 comments
Closed

示例语言最好换一下 #1

ifredom opened this issue Apr 4, 2020 · 3 comments

Comments

@ifredom
Copy link

ifredom commented Apr 4, 2020

用蒙语做示例,看不懂文字,所以也不知道文字的左右方向和上下方向。何不用中文。 用古时候的写法。

古文的顺序:
从上到下书写,从右到左书写。

小 天
心 干
火 物
烛 燥
。 ,

@suragch
Copy link
Owner

suragch commented Mar 9, 2021

@ifredom Sorry for the long delay in replying. I wasn't getting notifications before. This project isn't set up to display the ancient Chinese text in right-to-left line wrapping, but if you clone the repository it would be relatively little work to implement that. Mostly it would just involve changing the logic of MongolParagraph.draw method. (https://github.com/suragch/mongol/blob/master/lib/src/base/mongol_paragraph.dart)

@suragch suragch closed this as completed May 28, 2021
@suragch
Copy link
Owner

suragch commented May 28, 2021

Another option is to use a Wrap widget with the following settings:

textDirection: TextDirection.rtl,
direction: Axis.vertical,

https://medium.com/flutter-community/flutter-wrap-widget-e1ee0b005b16

@ifredom
Copy link
Author

ifredom commented Jun 2, 2021

另一种选择是使用具有以下设置的 Wrap 小部件:

textDirection : TextDirection .rtl,
方向: 轴。垂直,

https://medium.com/flutter-community/flutter-wrap-widget-e1ee0b005b16

Thank you for your work. This problem has been solved

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

No branches or pull requests

2 participants