Settings Field With Switch
fun SettingsFieldWithSwitch(state: Boolean, @StringRes textId: Int, horizontalPadding: Dp, switchEnabled: Boolean = true, 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
horizontal Padding
: Dp input to set the horizontal padding of the Composable
on Click
: (Boolean) -> Unit function to handle the click event.