Android, Jetpack Compose, AndroidDev, Software Architecture.
CHANGE_PASSWORD_ROUTE, dialogProperties = DialogProperties(usePlatformDefaultWidth = false) ) { val viewModel: ChangePasswordViewModel = hiltViewModel() ChangePasswordScreen( onCloseClick = onDismiss, onSaveClick = viewModel::changePassword, ) } } We can achieve the same result not only for dialogs