Help us understand the problem. What is going on with this article?

[Flutter]BOTTOM OVERFLOWED BY ** PIXELSへの対処法

問題

Flutterでキーボードを出したときに、BOTTOM OVERFLOWED BY N PIXELS と警告が出ることがある。
image.png

解決策

Scaffoldに resizeToAvoidBottomPadding:false を記載する。

Scaffold(
 resizeToAvoidBottomPadding: false,
 body: ...)

resizeToAvoidBottomPaddingはデフォルトはtrueになっており、キーボードを出したときに画面の要素を隠さないようにリサイズしてくれるのだが、隠しきれなかったときにこのような警告が出る。
falseにすることで、要素は固定したままキーボードを重ねて表示する。

参考

https://stackoverflow.com/questions/51972371/bottom-overflow-by-30px
https://api.flutter.dev/flutter/material/Scaffold/resizeToAvoidBottomInset.html

fujit33
brainpad
ブレインパッドは、2004年の創業以来、データによるビジネス創造と経営改善に向き合ってきたデータ活用・分析企業です。
http://www.brainpad.co.jp/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした