Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to align Text- left, right and center into Flutter?

I have three text- named as News-Title, News-date, and News-description. I want News title alignment as left, below to news-title want news-date right aligned and below to news-date wants news-description with center alignment.

please suggest proper solution…..

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Try below code hope its help to you. just set Alignment in your column refer layout and Align-class

Column(
        crossAxisAlignment: CrossAxisAlignment.start,//add this line if you used column widget in your code
        children: [
          Text('News-Title'),
          Text('News-date'),
          Text('News-description'),
        ],
      ),

Result-> image

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading