rememberRuntimeThemeProvider

Creates and remembers a RuntimeThemeProvider with the specified initial theme.

The provider is remembered across recompositions and configuration changes using the built-in RuntimeThemeProvider.Saver. This ensures theme state consistency during the component's lifecycle.

Return

A remembered RuntimeThemeProvider instance.

Parameters

initial

The initial theme to start with. Defaults to Theme.System.