3

I just updated material3 dependency to:

implementation "androidx.compose.material3:material3:1.0.0-alpha16"

And:

drawerContainerColor = Color.Red

Doesn't work anymore. I tried to set:

scrimColor = Color.Red

But the color is not changed? How to change the content color?

Joan P.
  • 2,368
  • 6
  • 30
  • 63

1 Answers1

3

You can use drawerContainerColor in the ModalDrawerSheet

ModalNavigationDrawer(
    drawerState = drawerState,
    drawerContent = {
        ModalDrawerSheet (drawerContainerColor=Red){
            //..
        }
    }
    //...
 )

enter image description here

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841