Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make the background color transparent #31

Closed
kosytedy opened this issue Jun 27, 2019 · 11 comments
Closed

How to make the background color transparent #31

kosytedy opened this issue Jun 27, 2019 · 11 comments

Comments

@kosytedy
Copy link

Please how can someone make the Navigation bar background color to be transparent?

I have tried Colors.transparent and .withOpacity(0.0) but they don't work.

Please how can I solve this?

Something like this:
transparent-nav

@rafalbednarczuk
Copy link
Owner

if you want background of navigation bar transparent use:

Scaffold(
      //...
      extendBody: true,
        bottomNavigationBar: CurvedNavigationBar(
          //...
          backgroundColor: Colors.transparent,
           ))

@kosytedy
Copy link
Author

kosytedy commented Jul 7, 2019

Works great!

@rishabhdavesar
Copy link

doesn't work for me

@g-akshay
Copy link

extend: true along with. transparent colour works perfectly!!!
I was facing the same issue, later found out the height of the container was not enough to be overlapped by the bottom navigation bar. Increasing the container height resolved the issue for me.

Hope it helps !!!

@Anigulig
Copy link

@rishabhdavesar In other case you can use

canvasColor: Colors.transparent;

In ThemeData of your application.
These changes helped in my case.

@AnnaPS
Copy link

AnnaPS commented Oct 30, 2020

if you want background of navigation bar transparent use:

Scaffold(
      //...
      extendBody: true,
        bottomNavigationBar: CurvedNavigationBar(
          //...
          backgroundColor: Colors.transparent,
           ))

You save my day! Thanks

@nscar
Copy link

nscar commented Dec 17, 2020

Ctrl + Click CurvedNavigationBar

this.backgroundColor = Colors.transparent,

@partitect
Copy link

if you want background of navigation bar transparent use:

Scaffold(
      //...
      extendBody: true,
        bottomNavigationBar: CurvedNavigationBar(
          //...
          backgroundColor: Colors.transparent,
           ))

It worked perfectly

@KriacoesMobile
Copy link

if you want background of navigation bar transparent use:

Scaffold(
      //...
      extendBody: true,
        bottomNavigationBar: CurvedNavigationBar(
          //...
          backgroundColor: Colors.transparent,
           ))

Thanks work fine here too. ;)

@itsdani121
Copy link

itsdani121 commented Dec 30, 2021

doesn't work for me

have you found solution i also facing the same problem. i tried all above solution but not work for me

@cybex-dev
Copy link

see #115, specifically I have a solution for this issue (chances are those who can't get it working are using a SafeArea)

#115 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests