Recipes List
fun RecipesList(meals: List<Meal?>, images: List<Bitmap?>, refreshing: Boolean, onRefresh: () -> Unit, onClick: (Meal) -> Unit)
a lazy list that displays the recipes and allows for refreshing of them. And navigates to the clicked recipe Users can also turn of the refreshing
Parameters
meals
the lis tof meals you want to display
images
that correspond to the images in 1:1 ratio
refreshing
boolean to tell the lazy list to refresh
on Refresh
sets the boolean to true. What actually happens to refresh is up to you
on Click
where to navigate when clicking the meal