Component package: app.presentation.theme.change
Invoke the ChangeThemeDestination
destination from your ViewModel or View utilizing the pre-configured NavigationStore.
class TemplateViewModel(
private val navigationStore: NavigationStore
) : BaseViewModel() {
fun onChangeTheme() {
navigationStore.onNext(ChangeThemeDestination)
}
}
Invoke the ChangeThemeDialogDestination
destination from your ViewModel or View utilizing the pre-configured NavigationStore.
class TemplateViewModel(
private val navigationStore: NavigationStore
) : BaseViewModel() {
fun onChangeTheme() {
navigationStore.onNext(ChangeThemeDialogDestination)
}
}