简体   繁体   中英

A RenderFlex overflowed bottom flutter

when I run the project it shows A RenderFlex overflowed on the bottom 在此处输入图像描述 A RenderFlex overflowed by 6.7 pixels on the bottom.

In your Scaffold, set resizeToAvoidBottomInset property to false.

Try below code hope its helpful to you. add your Column inside SingleChildScrollView

Refer my answer here also

SingleChildScrollView(
   child:Column(
     children:[
      //Declare Your Widgets Here
     ],
   ),
),

When the kayboard appears, it may hide something. To avoid this problem, you can wrap the entire screen widget in a SingleChildScrollView . This will mate the screen scrollable.

A quick solution would be to block the widgets inside the Scaffold to resize themselves when the keyboard opens but this way,

return Scaffold(
      appBar: AppBar(
        title: Text('Expenses Tracker'),
      ),
      body: SingleChildScrollView( // wrap with a scrollable widget
        child: Column(
          children: <Widget>[
            ...... // other widgets 
          ],
        ),
      ),
    );

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM