简体   繁体   中英

condensing the gap between flutter bottom navigation bar widget

I have been trying to make the flutter bottom navigation bar widget to condense the gap between icons.

在此处输入图像描述

How would I be able to do this. I am imagining that I would need to create my own bottom navigation bar but if there is a simpler solution then I am all ears.

Thank you.

Okay seems like I was being silly.

You can add padding to a specific side to get it moving like so:

BottomNavigationBarItem(
  icon: Container(
    child: Icon(Icons.explore),
      padding: EdgeInsets.fromLTRB(100, 0, 0, 0),
    ),
  title: Text("Explore"),
),

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM