RecipeDetailScreen

fun RecipeDetailScreen(recipeDetailViewModel: RecipeDetailViewModel = viewModel(factory = RecipeDetailViewModel.Factory), recipeId: Long, showImage: Boolean = true)

Composable function for the RecipeDetailScreen. It displays the details of a recipe.

Parameters

recipeDetailViewModel

The ViewModel for managing Recipe data.

recipeId

The ID of the recipe to display.

showImage

A flag indicating whether to show the image of the recipe.