How to tell flutter widget that keyboard doesnt change screen size

荒凉一梦 提交于 2021-01-29 08:20:04

问题


I was looking for a way to split my background in my flutter application using a wave, and I found this piece of code: Design a background from 2 images in flutter

It works perfectly, and I could adapt it to my needs. The only thing I don't understand is that every time I open my keyboard and type something into an input field, the wave is recalculated. I thought if I used a StatelessWidget, that wouldn't happen. Does anyone have an idea how I can fix this problem?

Thank you very much.

来源:https://stackoverflow.com/questions/61551166/how-to-tell-flutter-widget-that-keyboard-doesnt-change-screen-size

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!