ryan.fonzi
07/30/2022, 2:30 PMDialog
seems to ignore the density values in LocalDensity
for its content. 🧵CompositionLocalProvider(LocalDensity provides Density(1.5f, 1.5f)) {
// other content
Dialog(..) {
// dialog content
}
}
..will scale whatever's in "other content", but "dialog content" remains unscaled.
But if you re-wrap the dialog content it works on both:
CompositionLocalProvider(LocalDensity provides Density(1.5f, 1.5f)) {
// other content
Dialog(..) {
CompositionLocalProvider(LocalDensity provides Density(1.5f, 1.5f)) {
// dialog content
}
}
}
Is this a bug or intentional?Dominaezzz
07/30/2022, 3:27 PMryan.fonzi
07/30/2022, 4:09 PMDominaezzz
07/30/2022, 4:10 PMryan.fonzi
07/30/2022, 4:11 PMLocalDensity
.Dominaezzz
07/30/2022, 4:12 PMPopup
available on Android?ryan.fonzi
07/30/2022, 4:14 PMDropdownMenu
works. Lemme try that.LocalDensity
eitherDominaezzz
07/30/2022, 4:18 PMryan.fonzi
07/30/2022, 4:18 PM