B. Mercan
B. Mercan

Reputation: 51

Why flutter button stays under keyboards when keyboard appears

i want to push the page up when keyboard is on. i have next page button bottom of my page (for now its bottomnavigationbar) but when i filling fields and keyboard is on next page button stays under keyboard, i want to keyboard pushes up the bottomnavigationbar and always seen

Scaffold(
body : Center(
      child: SingleChildScrollView(
        child: Column(
          children: [
           ..mywidgets
          ],
        ),
      ),
    ),
bottomNavigationBar: nextButtonWidget()
);

Upvotes: -1

Views: 153

Answers (2)

Prashant
Prashant

Reputation: 676

Placing widgets inside BottomNavigationBar will show your widgets at the bottom of the screen regardless of whether screen is scrolled or not.

To scroll your button dynamically up,

Place your nextButtonWidget in bottomSheet.

bottomSheet: nextButtonWidget()

Upvotes: 1

Jakhongir Anasov
Jakhongir Anasov

Reputation: 1119

put your nextButtonWidget inside Column. Not as bottomNavigationBar.

Upvotes: 1

Related Questions