How to indent if Text is softWrapped in Flutter - flutter

I'm working on an app that displays lyrics for several hymns in my native language.
Each line of the hymn is an individual Text Widget. I want the text to indent if it got softWrapped if user increases the font size to indicate that its not the next line. How can I achieve this effect?

Adding one or more tab escape characters "\t" to your strings may do the trick for you:
Text("\t this is a text string that will have an indentation",),

Related

Flutter, TextField direction line by line

how i can build a textField to change text direction line by line ( based on the first character )
For example, I want it to be displayed as below when typing 2 letters in different languages in the text field
// this line started with LTR characters, start at left
Hi Good morning
// this line started with RTL characters, start at right
سلام، صبح بخیر
Are you ok?
حالت خوبه؟
I looked at Flutter's code and noticed that Flutter uses text span to create text in the text field (that is, all the text can only be changed), is this possible with Flutter's own text field widget?

How to insert single line tabs into Flutter Quill Documents without full paragraph indents

Using "\t" as would be standard elsewhere does not work giving an error icon and the default "indent" applies to entire paragraphs at a time unlike the behavior I intend as a tab for a paragraph like in Microsoft Word or Google Docs.
I have tried inserting '\t' and using Flutter Quill's built in indent system. I expect a tab result but instead can only achieve full paragraph indenting.
Flutter quill: https://pub.dev/packages/flutter_quill

Tab stops are messed up after rarer unicode characters

In vscode, when I open a file containing unicode characters,
I notice that tabs do not always advance to the next tab stop.
For example, the following might be part of an ASCII-flavor table
a<tab>b<tab>c<tab>d<tab>e
α<tab>β<tab>γ<tab>δ<tab>ε
𝔸<tab>𝔹<tab>ℂ<tab>𝔻<tab>𝔼
While sublime text renders it correctly(IMO)
vscdoe has a different idea
As I understand it, vscode renders a tab by
replacing it with a proper number of space characters.
So if there are characters showing using proportional fonts,
no integer number of spaces will make it to the proper stop.
(See this related issue.)
So my question is, how can I fix this?
Is it possible to tell vscode that
"Fine, if you were to assume that those unicode characters
are 2 spaces wide when tabbing,
would you please render them as 2 spaces wide?"

How to set width of text marks in vega-lite / altair (text wrapping and line break) for long text

I am trying to display text over time using altair (vega-lite), which works fine using a layered chart, where one is created using the alt.Chart().mark_text() function to display the text.
The text though is multiple phrases and should be wrapped (with line breaks). How can this be done?
(I do not want to use fixed line breaks, e.g. \n, at distinct positions since the text wrapping should work with zooming too)
Not exactly what you want, but you can specify a character on which to break to a new line. When zooming, the text stays the same size, so it should always fit the view.
For example making a new line for every word:
.mark_text(lineBreak=' ')

In UILabel dotted line is show front in iOS ?

I want to show the dotted line in front of the text (Same as Apple default Keypad Label).
Like as (....hi)
For iOS 6 use NSLineBreakByTruncatingHead of NSLineBreakMode.
From the docs:
NSLineBreakByTruncatingHead The line is displayed so that the end fits
in the container and the missing text at the beginning of the line is
indicated by an ellipsis glyph. Although this mode works for multiline
text, it is more often used for single line text.
For iOS < 6 you can use UILineBreakModeHeadTruncation of UILineBreakMode.
Dot will come automatically. if your text is big compare to label size. Then dot will come
automatically.
In Interface Builder: Line Break Mode -> Truncate Head