rememberInputProfile

Reads the live InputProfile from Compose's media-query integration.

Recomposes when any axis changes — plugging in a mouse, unfolding the device, swapping to the on-screen keyboard.

The flag check is load-bearing, not defensive. mediaQuery throws IllegalStateException when isMediaQueryIntegrationEnabled is false — it does not fall back to defaults. Without this guard, every composable under an AdaptiveTheme dies on any surface that never called enableMediaQuery, which is every @Preview, every Compose UI test, and any consumer that has not yet wired its entry point. Caught by AdaptiveWidthUiTest on iOS and wasm.

Prefer reading LocalInputProfile inside the app shell; call this directly only where you are providing that local.