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 can I show long texts so that they continue from the bottom line

I want the long texts to be clipped and continue from the down line. How can I do this in flutter?
I have tried all the features of "textoverflow" but no changes

enter image description here

enter image description here

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

ListTile(
          onTap: () {},
          visualDensity: VisualDensity(vertical: 4),
          leading: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            children: [
              Expanded(
                child: Text(
                  "Cari Kodu: ${item.cariKod.toString()}",
                ),
              ),
        
            ],
          ),
          trailing: Column(
            crossAxisAlignment: CrossAxisAlignment.end,
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            children: [
            
              Text(
                "Bakiye: ${item.bakiye.toString()}" +
                    "${item.dovizIdStr != null ? " ${item.dovizIdStr}" : ""}",
              ),
           
            ],
          ),
        ),

>Solution :

just wrap your text inside an Expanded. because the Text widget is inside a Row the widget doesn’t know how much horizontal space it has.

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