We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When playing an animation inside bottom sheet, a large amount of memory is allocated. This causes an application to crash with OOM error.
Affected platforms
Versions
To Reproduce Steps to reproduce the behavior:
@OptIn(ExperimentalMaterial3Api::class) @Composable fun Graphics2D(requestWindowSize: ((width: Dp, height: Dp) -> Unit) = EMPTY_WINDOW_RESIZER) { val exampleState: MutableState<Example?> = remember { mutableStateOf(null) } val example = exampleState.value MaterialTheme( colorScheme = if (isSystemInDarkTheme()) darkColorScheme() else lightColorScheme() ) { ModalBottomSheet(onDismissRequest = {}) { if (example == null) { LazyColumn(Modifier.padding(horizontal = 16.dp)) { items(examples) { Button(onClick = { exampleState.value = it }) { Text(it.name) } } } } else { example.content { w, h -> requestWindowSize(w, h + TOP_APP_BAR_HEIGHT) } } } } }
According to the profiler, memory consumption is over 3 GiB
The text was updated successfully, but these errors were encountered:
elijah-semyonov
No branches or pull requests
When playing an animation inside bottom sheet, a large amount of memory is allocated. This causes an application to crash with OOM error.
Affected platforms
Versions
To Reproduce
Steps to reproduce the behavior:
According to the profiler, memory consumption is over 3 GiB
The text was updated successfully, but these errors were encountered: