Flutter - How to stop dialogs resizing or shifting when keyboard is activated
Asked Answered
E

1

6

I have a number of Dialogs that use a keyboard for text input. Whenever the keyboard is activated, the Dialog windows shift position upwards and resize.

I would like to stop this behaviour so that the keyboard is forced over the Dialog content. Is there a way to force this? I have set resizeToAvoidBottomInset: false in my Scaffold.

Note that I am using a DefaultTabController as a parent widget of my Scaffold

Exciting answered 9/9, 2022 at 10:45 Comment(0)
P
0

I know I am late, but I have only come across this now because I also ran into this problem. I managed to solve it by warping my dialog with a SingleChildScrollView.

Pelite answered 25/4, 2024 at 6:41 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.