ProvideIconParameters
fun ProvideIconParameters(iconFont: IconFont = LocalIconFont.current, size: Dp = LocalIconSize.current, tint: Color = LocalIconTint.current, weight: FontWeight = LocalIconWeight.current, content: @Composable () -> Unit)(source)
Deprecated
Specifying only one of the parameters may result in an overload resolution ambiguity, use CompositionLocalProvider instead.
Replace with
import androidx.compose.runtime.CompositionLocalProvider
Content copied to clipboard
CompositionLocalProvider(LocalIconFont provides iconFont, LocalIconSize provides size, LocalIconTint provides tint, LocalIconWeight provides weight, content = content)Content copied to clipboard
A shortcut method to set default values for FontIcon composables. Might be better to use CompositionLocalProvider if it's for setting only one of the default values.
fun ProvideIconParameters(iconFont: IconFont = LocalIconFont.current, size: Dp = LocalIconSize.current, tintProvider: CompositionLocal<Color>? = LocalIconTintProvider.current, weight: FontWeight = LocalIconWeight.current, content: @Composable () -> Unit)(source)
Deprecated
Specifying only one of the parameters may result in an overload resolution ambiguity, use CompositionLocalProvider instead.
Replace with
import androidx.compose.runtime.CompositionLocalProvider
Content copied to clipboard
CompositionLocalProvider(LocalIconFont provides iconFont, LocalIconSize provides size, LocalIconTintProvider provides tintProvider, LocalIconWeight provides weight, content = content)Content copied to clipboard
A shortcut method to set default values for FontIcon composables. Might be better to use CompositionLocalProvider if it's for setting only one of the default values.