Home > Mobile >  How to center a NavigationRail's content in Jetpack Compose (menuGravity missing)
How to center a NavigationRail's content in Jetpack Compose (menuGravity missing)

Time:03-17

Problem

The Composable androidx.compose.material.NavigationRail has in some documention an optional "centered" alignment. I cannot achieve this using Jetpack Compose.

The "old" XML attribute is app:menuGravity="center" enter image description here

CodePudding user response:

As suggested in the enter image description here

  • Related