1

Layout is ok when there is no keyboard. But, when keyboard pop up bottom owerflowed.

How do i fix it?

Sadisha
  • 364
  • 1
  • 2
  • 10

2 Answers2

0

You need a Scroll Widget on top of the others. This is the best way, because the widgets will adjust to the keyboard. However you can also edit your Scaffold with:

resizeToAvoidBottomPadding: false 

Or, try this one

Expanded(
    child: ListView(
        children: <Widget>[
            YourWidgets()
        ]
    )
)
Sadisha
  • 364
  • 1
  • 2
  • 10
Silent Tree
  • 987
  • 1
  • 7
  • 16
0

Your widget gets resized whenever your keyboard gets focused as your widget is not scrollable and has finite height. So, what you can do is wrap your hole widget inside a SingleChildScrollView.

For Ex:

SingleChildScrollView(child:_buildYourWidget());

If your widget consist column as its top most layer then you should provide column an additional property that is mainAxisSize to minimum. So that Column will take the required height and SingleChildScrollView will be able to manage your content properly.

mainAxisSize:MainAxisSize.min

This will definitely solve your issue.

Jay Mungara
  • 6,663
  • 2
  • 27
  • 49