简体   繁体   中英

How to fix RenderFlex overflowed in Flutter?

I was browsing Uplabs and find a Login Ui/UX design by Yogesh Solanki and implemented in Flutter .

While writing that app I face one problem:

  1. RenderFlex overflowed

1. RenderFlex overflowed

The error message was `A RenderFlex overflowed by 31 pixels on the bottom.

Login UI Source Code

在此输入图像描述

How Do I Fix It?

It depends on your code and used widgets. One way is to wrap root widget into SingleChildScrollView .

It can be another solution - you better paste your code

UPD

Inside build method of AuthBody change Column to:

ListView(children: <Widget>[
  _buildHeader(),
  _buildForm(context),
  _buildForgetButton(),
],)

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