SettingsFieldWithSwitch

fun SettingsFieldWithSwitch(state: Boolean, @StringRes textId: Int, theme: SettingsThemeConfiguration, horizontalPadding: Dp, onClick: (Boolean) -> Unit)

Composable Title field to display the settings with switch.

Parameters

state

: Boolean input to show the selected option

textId

: Int input to show the title of the settings

theme

: SettingsThemeConfiguration theme configuration

horizontalPadding

: Dp input to set the horizontal padding of the Composable

onClick

: (Boolean) -> Unit function to handle the click event.