Yahya Abunada
Yahya Abunada

Reputation: 175

How i ca fix this error (A RenderFlex overflowed by 104 pixels on the bottom.)

enter image description here

This (Trailing inside ListTile) In Flutter

trailing: Column(
            children: <Widget>[
              new IconButton(icon: Icon(Icons.arrow_drop_up), onPressed: (){}),

              Text("Hello"),
              new IconButton(icon: Icon(Icons.arrow_drop_down), onPressed: (){}),


            ],
          ),

Upvotes: 1

Views: 251

Answers (2)

Akshat Arora
Akshat Arora

Reputation: 36

    trailing: FittedBox(
      fit: BoxFit.fill,
      child: Column(
        children: <Widget>[
          new IconButton(icon: Icon(Icons.arrow_drop_up, size: 50.0,), onPressed: (){}),
          new Text("${cart_prod_qty}", style: TextStyle(fontSize: 25.0),),
          new IconButton(icon: Icon(Icons.arrow_drop_down, size: 50.0,) , onPressed: (){}),
        ],
      ),
    ),

Upvotes: -1

Hardik Kumbhani
Hardik Kumbhani

Reputation: 2021

 trailing: Column(
          mainAxisAlignment: MainAxisAlignment.start,
          mainAxisSize: MainAxisSize.min,
          children: <Widget>[
            Expanded(
                  child: new IconButton(
      padding: EdgeInsets.zero,
      icon: Icon(Icons.arrow_drop_up), onPressed: (){}),
            ),

            Expanded(child: Text("Hello")),
            Expanded(child: new IconButton(icon: Icon(Icons.arrow_drop_down), onPressed: (){})),


          ],
        ),

Upvotes: 3

Related Questions