I was having bottom overflow issue (this is so funny) when keyboard is shown, so I set my scaffold
resizeToAvoidBottomInset
property to false
as suggested in a few SO posts.
Doing this fixes the overflow issue but has an unintended consequence where snackbar
appears below the keyboard and is thus invisible.
Setting resizeToAvoidBottomInset
to true
solves the snackbar
issue, but the bottom overflow is back!
How can I have my cake and eat it too?
2
Answers
You can wrap your main content in a SingleChildScrollView to avoid to bottom overflow issue when the keyboard appears.
Use a SingleChildScrollView around your widget, keep resizeToAvoidBottomInset: true