-3

How do I individually set text alignment for each line within a Flutter TextField widget, considering different line lengths and maintaining alignment like this

and I try to do this with textEditingController and doing check each character to we have a new line or not, and seperate them, but i think its not very good solutionenter image description here

  • i didn't downvote but I can't understand why do you want a feature like that? its probably impossible to implement your demonstration because the textAlign parameter applies to the whole text which is controller.text, which contains everything in it. You need to come up with a different new design and logic to implement such feature – Texv Aug 17 '23 at 16:24

0 Answers0