0

I am using row widget in which i am showing text in a column. But issue is its overflow the width of text.

My code

    Padding(
        padding: const EdgeInsets.all(20.0),
        child: Row(
          children: [
            Image.asset(
              'images/[email protected]',
              height: height * 0.045,
            ),
            Padding(
              padding: const EdgeInsets.only(left: 20),
              child: Column(
                children: [
                  Expanded(
                      child: Text(
                    'KMC-216, TOHEED COLONY, SECTOR 11, BLOCK L, ST6, KARACHI, ABC, XYZ, DMG',
                    style: TextStyle(
                      fontSize: 17,
                      fontFamily: 'UbuntuRegular',
                    ),
                  )),
                  SizedBox(
                    height: height * 0.007,
                  ),
                  Text(
                    'Home Adress',
                    style: TextStyle(
                        fontSize: 17,
                        fontFamily: 'UbuntuRegular',
                        color: Colors.grey),
                  ),
                ],
              ),
            )
          ],
        ),
      ),

enter image description here

I want to show text on left and not overflow

1 Answer 1

3

you can wrap all the childrens of your Row in Flexible or Expanded widgets.
Here's a preview:

enter image description here

You can access the preview and code here

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.