How to add Floating action Button in Bottom Navigation Bar in Center with border?

前端 未结 2 922
感动是毒
感动是毒 2021-02-10 01:27

I am trying to add a Floating Action Button in the middle of the Bottom Navigation bar. Problem is border is not appearing and also margin in Floating Action Button and icons no

2条回答
  •  半阙折子戏
    2021-02-10 02:13

    Here is a crystal clear official demonstration : https://youtu.be/2uaoEDOgk_I

    Code will be something like this:

    Scaffold(..
      floatingActionButton..
      bottomNavigationBar..
        floatingActionButtonLocation: FloatingActionButtonLocation.endDocked
    

提交回复
热议问题