https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Adil

03/28/2024, 7:57 AM
(FIXED) Can any one help me with this? on Multiplaform Android ()
Copy code
enableEdgeToEdge(
            statusBarStyle = SystemBarStyle.auto(Color.TRANSPARENT,Color.TRANSPARENT),
            navigationBarStyle = SystemBarStyle.auto(Color.TRANSPARENT,Color.TRANSPARENT),
            )
v

Vlad Mircan

03/28/2024, 8:11 AM
By enabling
edgeToEdge
you are telling
Compose
to lay the views without caring for the system bars, hence the overlap. What you probably want is to use
.systemBarsPadding()
or more specifically in your case
.navigationBarsPadding()
to have the
BottomNavigationBar
be taller with the amount required by the system.
a

Adil

03/28/2024, 8:12 AM
@Vlad Mircan after adding .navigationBarsPadding()
v

Vlad Mircan

03/28/2024, 8:13 AM
You need to add it to the desired component and after applying the background
🙌 1
a

Adil

03/28/2024, 8:15 AM
@Vlad Mircan Thanks! Fixed
v

Vlad Mircan

03/28/2024, 8:18 AM
Awesome! Glad to be able to help, you can read more about it here
👀 1