What is a JetpackCompose equivalent for Flutter Wrap widget? - flutter

I would like to have row which automatically goes in next line after it fits current line.

Related

Flutter - Text align justify with no half filled lines

I'm building a Quran app where I want all pages to have fully filled lines
I tried to use TextAlign.justify and it kinda helped and got this output from it:
The problem is that the last line is not filled all the way out like this for example:
I tried to use TextPainter but it removed the onTapGestureRecognizer.
How can I get such an output without removing the tap capability? I also tried line and letter spacing but didn't work too.

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?

flutter- put cursor on a textfield using local offset

Flutter textfield automatically puts cursor on the desired position when one simply taps on it.
However, I do not know how to achieve this effect when the user clicks on it for the first time, since I am just making the textfield visible.
I have the local offset in which I would like to put my cursor on. However, flutter only has the selection method, in which I have to know the number of text characters rather than the local offset.
contentTextController.selection = TextSelection.fromPosition(
TextPosition(offset: theoffsetnum,)
How can I put the cursor on the text that corresponds to the local offset within the textfield?

TextField's current focus position in flutter

Hey I have a TextField and a controller for it through which I access its current text value and add some text like (Some Special Asterix or text with angular brackets just like hashnode's text editor) to it when needed, adding text at the end is easy.
controller.text += "Something";
The above code will add Something to the end. But I need to know the current TextFields Cursor position and add text according to it.
I really love to know how we can do it in flutter efficiently
Try this to get the cursor position
print(controller.selection.baseOffset);
print(controller.selection.extentOffset);
if they are the same, it is current cursor position.
if not, it means that some of text is selected, baseOffset is start position and extentOffset is end positon.

How to get iter or mark of first and last visible line in GtkTextView widget?

How can I get iter or mark of first and last visible line in GtkTextView widget? I cant find nothing on this topic.