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
Description In my snapshot I call my Compose function that shows an AlertDialog. I wrap the function call in WithDensity:
snapshot
AlertDialog
WithDensity
@Composable fun WithDensity( density: Float = -1F, fontScale: Float = -1F, content: @Composable () -> Unit, ) { val current = LocalDensity.current CompositionLocalProvider( LocalDensity provides Density( density = when(density) { -1F -> current.density else -> density }, fontScale = when(fontScale) { -1F -> current.fontScale else -> fontScale }, ), content = content, ) } paparazzi.snapshot { withDensity(fontScale = 2F) { MyComposeFunction() } }
however the text in the AlertDialog is not scaled. Android Studio previews and running the app on device do scale the text.
Additional information:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
In my
snapshot
I call my Compose function that shows anAlertDialog
. I wrap the function call inWithDensity
:however the text in the
AlertDialog
is not scaled. Android Studio previews and running the app on device do scale the text.Additional information:
The text was updated successfully, but these errors were encountered: