Using TextSpan to display translation underline

291 views Asked by At

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

0

There are 0 answers