Settings Field With Switch
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
text Id
: Int input to show the title of the settings
theme
: SettingsThemeConfiguration theme configuration
horizontal Padding
: Dp input to set the horizontal padding of the Composable
on Click
: (Boolean) -> Unit function to handle the click event.