Created
March 16, 2021 19:06
-
-
Save pauloaapereira/8d4ab0c7d53fa642179eff6fe4723b23 to your computer and use it in GitHub Desktop.
Jetpack Compose - Drawer Pushing Content - 8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun App() { | |
var isDrawerOpened by remember { mutableStateOf(false) } | |
DrawerContainer( | |
isDrawerOpened = isDrawerOpened, | |
onSwipe = { toOpen -> isDrawerOpened = toOpen } | |
) { | |
Drawer() | |
Body() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment