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

backgroundColor not working #128

Open
HamzaAssassin opened this issue Mar 14, 2024 · 1 comment
Open

backgroundColor not working #128

HamzaAssassin opened this issue Mar 14, 2024 · 1 comment

Comments

@HamzaAssassin
Copy link

HamzaAssassin commented Mar 14, 2024

When I used to modify the background color, it didn't change the background color.
but when I used to hide the bottom navigation bar, the background color didn't hide with the bottom navigation bar.
WhatsApp Image 2024-03-14 at 13 34 15_2ac65cdd

@jb3rndt
Copy link
Owner

jb3rndt commented Mar 14, 2024

I think you just upgraded to version 5 right? PersistentTabView.backgroundColor now sets the color of the whole PersistentTabView, instead of just the navbar like in version 4. If you want to change the background of your navigation bar, pass a NavBarDecoration object to the navBarDecoration argument of the navbar and change the color in that object. Or, if you are using a custom navbar, change your code accordingly.

Regarding the background not hiding: I dont know how that is caused. Please send me a small code sample that reproduces this issue (including at least your PersistentTabView configuration, the code for the navbar if you use a custom one, the configuration for the tabs and if relevant the logic for hiding the navbar). If your code contains anything that should not be shared, replace it with a placeholder, but please keep the code executable.

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

2 participants