HomeiOS Developmentandroid - Why is Textual content widget goes outdoors of Container borders?

android – Why is Textual content widget goes outdoors of Container borders?


I’m attempting to make round borders to Container widget, however Textual content widget goes outdoors of it, what’s the downside?

enter image description here

Code:


  @override
  Widget construct(BuildContext context) {
    return Container(
      ornament: const ShapeDecoration(
          form: RoundedRectangleBorder(
              borderRadius: BorderRadius.all(Radius.round(3))),
          shade: Colours.purple),
      baby: Wrap(
        youngsters: [
          Column(
            children: [
              SizedBox(
                  height: 90.0,
                  child: Image(
                      image: NetworkImage(product.productImageUrl),
                      fit: BoxFit.fitHeight)),
              Text(product.productTitle,
                  style: const TextStyle(fontSize: 11.0)),
            ],
          ),
        ],
      ),
    );
  }

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments