Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a transparent bottom navigation bar in flutter

App screen is covered with an image, there is a bottom app bar which I need to see the background image as transparent.

I am using svg icons for bottom navigationbar icons. The same screen top appbar is transparent but bottom app bar showing white color.



  BottomAppBar _buildBottomNavigationBar() {
    return BottomAppBar(
      color: Colors.transparent,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          IconButton(
            onPressed: () {},
            icon: SvgPicture.asset(
              'assets/icons/home.svg',
              color: Colors.black,
            ),
            //color: Colors.black,
          ),
          IconButton(
            onPressed: () {},
            icon: SvgPicture.asset('assets/icons/location.svg'),
            color: Colors.black,
          ),
          IconButton(
            onPressed: () {},
            icon: SvgPicture.asset('assets/icons/fish.svg'),
            color: Colors.black,
          ),
          IconButton(
            onPressed: () {},
            icon: SvgPicture.asset('assets/icons/menu.svg'),
            color: Colors.black,
          ),
        ],
      ),
    );
  }

like image 992
Mahi Avatar asked Dec 18 '25 16:12

Mahi


1 Answers

try this:

Scaffold(
  extendBody: true,
like image 157
Jim Avatar answered Dec 21 '25 07:12

Jim