Chris Johnson
02/20/2024, 9:00 PMwidthSizeClass
as part of a composition local that any of my composables can access? In some of the sample projects for compose (Reply) they pass a variable to every composable that tells it what to display. This feels like it could pretty messy with a ton of screens.Alex Vanyo
02/20/2024, 9:23 PMCompositionLocal
for fear of code becoming a bit more magical and harder to test.
The version in material3-adaptive
for getting the window size class (currentWindowAdaptiveInfo) is just a plain @Composable
and doesn’t require passing down information quite as much.Chris Johnson
02/21/2024, 12:30 AM