how can I make BottomNavigationBar stick on top of keyboard flutter

前端 未结 4 930
礼貌的吻别
礼貌的吻别 2021-02-05 08:32

I am trying to make a simple chat app, so I created a scaffold and my body, will be the messages and my bottomNavigationBar would be my typing field and sending ico

4条回答
  •  太阳男子
    2021-02-05 08:56

    if you use a Stack on your Scaffold's body, instead of bottomNavigationBar, your nav will push up above the keyboard. even if you fix to the bottom with a Positioned:

    Positioned(
       bottom: 0.0,
       left: 0.0,
       right: 0.0,
       child: MyNav(),
    ),
    

提交回复
热议问题