简体   繁体   中英

Flutter: Right overflowed by 18 pixels

I'm Creating Login page inside my Flutter App. I've added those login content inside Row.

But when the app shows yellow bar saying

Right Overflowed by 18 pixels

I want to show only those contents which fits in 1st Row, All remaining content should get displayed below to it.

My snippet:

在此处输入图像描述

Actually the code that you have posted is not complete, but from what I see is Row takes the max width so maybe you are getting the overflow, Maybe you should use a Expanded widget as a parent of the text Widgets so that it might work, It would be better if you post the full code, so that can tell you the where Exactly going wring.

the reason is some of your widget widths is higher than the phone screen width. use listview((vertical)) inside Row to avoid that problem. you can scroll vertically that part

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