I have a sliding up panel widget. I use the panelBuilder to have a singleChildScollView inside the panel. The sliding up panel is nested inside a stack whose parent is a Scaffold. I set the resizeToAvoidBottomInsets to false in this scaffold.
Inside the panel, I have a bunch of text fields that I don't want to be covered by the keyboard. The resizeToAvoidbototm Insets works fine most of the time. The only time it doesn't work is when the content is scrolled to the very top (where scrolling any further would pull the panel down). Even if I scroll like the smallest amount downward inside the singlechildscrollview, the content gets pushed up when the keyboard comes up, and that works well.
Hopefully, you can see the GIF example. I open the panel and it starts at the very top of the scrollable content inside. I click on any textfield and the keyboard covers them. Then you'll see me scroll down slightly, and the resizeToAvoidBottomInsets works again. So the only time it doesn't work is at the top. Any way to fix this problem?
I have a sliding up panel widget. I use the panelBuilder to have a singleChildScollView inside the panel. The sliding up panel is nested inside a stack whose parent is a Scaffold. I set the resizeToAvoidBottomInsets to false in this scaffold.
Inside the panel, I have a bunch of text fields that I don't want to be covered by the keyboard. The resizeToAvoidbototm Insets works fine most of the time. The only time it doesn't work is when the content is scrolled to the very top (where scrolling any further would pull the panel down). Even if I scroll like the smallest amount downward inside the singlechildscrollview, the content gets pushed up when the keyboard comes up, and that works well.
Hopefully, you can see the GIF example. I open the panel and it starts at the very top of the scrollable content inside. I click on any textfield and the keyboard covers them. Then you'll see me scroll down slightly, and the resizeToAvoidBottomInsets works again. So the only time it doesn't work is at the top. Any way to fix this problem?