AVEbrahimi
AVEbrahimi

Reputation: 19144

Using TextSpan to display translation underline

I am writing an English to Arabic translation app using Flutter. I want to display the Arabic translation of each sentence between the lines of the English text (woven together, see attached). How can I wrap one-line English, then one line Arabic,... and finally wrap remainder last lines without extra line space?

Maybe I can do it but weaving to TextSpans with 2x line space using Stack?

(Text is dummy, don't try to read it!) enter image description here

Upvotes: 0

Views: 300

Answers (0)

Related Questions