Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Flutter – Extended floating popup in bottomBarNavigation

How to make Extended floating popup in bottomBarNavigation, like in this image

Want this type of design

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You can achieve this with BottomNavigationBar:

BottomNavigationBar(
      type: BottomNavigationBarType.fixed,
      currentIndex: 0,
      items: [
        new BottomNavigationBarItem(
          icon: new Icon(Icons.add),
          label: "Home",
        ),
        new BottomNavigationBarItem(
          icon: new Icon(Icons.add),
          label: "Publish",
        ),
        new BottomNavigationBarItem(
          icon: new Icon(Icons.delete),
          label: "Profile",
        )
      ],
      onTap: (index) {
        if (index == 1) {
          print("Call");
          showModalBottomSheet(
              context: context,
              backgroundColor: Colors.transparent,
              barrierColor: Colors.transparent,
              elevation: 0,
              builder: (builder) {
                return Padding(
                  padding: const EdgeInsets.only(bottom: 58 + 32),
                  child: Column(
                    mainAxisSize: MainAxisSize.min,
                    children: [
                      ElevatedButton(onPressed: () {}, child: Text('1')),
                      ElevatedButton(onPressed: () {}, child: Text('2')),
                      ElevatedButton(onPressed: () {}, child: Text('3')),
                    ],
                  ),
                );
              });
        }
      },
    )

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading