Scott King
Scott King

Reputation: 11

Why is there a white screen after the Flutter keyboard is put away?

When I use Flutter, when the keyboard is closed, there will be a short white screen under the page before I can see the content.

Upvotes: 1

Views: 613

Answers (1)

Pablo Barrera
Pablo Barrera

Reputation: 10963

It's because the body of the Scaffold gets resized when you open the keyboard

You can avoid the resizing with resizeToAvoidBottomInset: false or use another backgroundColor on the Scaffold

Upvotes: 4

Related Questions