0

I have an app that shows textfields and image and I face a problem when the user tries to enter data in textfield as the keyboard goes up and cover the entire textfields.

I tried to use SingleChildScrollView but it is not practical as the textfields do not go up automatically but the user has to scroll up by himself.

Here is the code:

enter image description here

Alex Ali
  • 1,339
  • 5
  • 23
  • 34

2 Answers2

1

Try using Animation and move up your text field when keyboard appears. Check this out When i select a Textfield the keyboard moves over it

Anas
  • 1,013
  • 1
  • 6
  • 20
0

Don't have a sized container inside, follow the below :

SingleChildScrollView(
        child: Stack(
          children: <Widget>[
            ... your code
          ]
        )
)

In your Scaffold, set resizeToAvoidBottomPadding property to false.

Gerry
  • 1,159
  • 1
  • 14
  • 29