slovenian_boy
slovenian_boy

Reputation: 35

How do I position text in Flutter

I am wondering what do I have to write to position text so it will not only border left side but also right side.

enter image description here

Container(
            padding: EdgeInsets.all(10),
            alignment: Alignment.topCenter,
            child: Text(
              'TEXTTEXT',
              style: TextStyle(
                color: drbarva,
                fontSize: 15,
              ),
            ),
          )

Upvotes: 1

Views: 55

Answers (1)

Jahidul Islam
Jahidul Islam

Reputation: 12595

Try this textAlign: TextAlign.justify

Text(
              "this working for me this is working for me",
              textAlign: TextAlign.justify,
            ),

Upvotes: 1

Related Questions