1
Column(
  crossAxisAlignment: CrossAxisAlignment.start,
  children: [
    Text(showing.title, style: browseTitle, overflow: TextOverflow.ellipsis,),
    Text(showing.dates, style: browseInfo),
    SizedBox(
      height: 20,
    ),
    Text('Posted by: ' + showing.email, style: browseInfo),
  ],
),

This code produces this: Image

But the problem is that the textoverflow I put inside the text doesn't seem to be applying and the text keeps overflowing. How do I solve this so that the text doesn't overflow and it turns into an ellipsis?

1 Answer 1

1

CheckOut this work perfect

Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          SizedBox(
            width: MediaQuery.of(context).size.width,
            child: Text(
              showing.title,
              style: browseTitle,
              maxLines: 1,
              overflow: TextOverflow.ellipsis,
            ),
          ),
          Text(showing.dates, style: browseInfo),
          SizedBox(height: 20),
          Text('Posted by: ' + showing.email, style: browseInfo),
        ],
      ),
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.