Skip to main content
Version: 5.0

My Meals Recipe Card

This template allows you to override the recipe cards on the My Meals page.

You can configure it this way :

import androidx.compose.ui.Alignment

myMeal {
loading { view = /* your view */ }
empty { view = /* your view */ }
itemSelectorCTA { view = /* your view */ }
title { view = /* your view */ }
recipeCard { success { view = /* your view */ } } // Recipe Card here
}

Then to create your regular template :

class MyCustomMyMealRecipeCard: MyMealRecipeCardSuccess {

@Composable
override fun Content(params: MyMealRecipeCardSuccessParameters) {
// Your custom design here
}
}

Params

data class MyMealRecipeCardSuccessParameters(
/// Recipe object containing all data you'll need
val recipe: Recipe,
/// Total price of the recipe products
val totalPrice: Double,
/// Number of guests the recipe is designed for
val guestCount: Int,
/// Number of products added to basket
val numberOfProductsInRecipe: Int,
/// If the user has deleted the recipe
val isDeleting: Boolean,
/// Will open the Recipe Details deature
val openRecipeDetail: () -> Unit,
/// Function to delete the recipe products from the basket
val delete: () -> Unit
)

Resources

NameResource IDValue FrValue Eng
myMealsProductscom_miam_my_meals_productsproduitsproducts
showProductscom_miam_recipe_check_basket_previewVoir les produitsShow products
titlecom_miam_catalog_filter_search_placeholderRechercherSearch
perPersoncom_miam_my_meals_per_person_textsoit %s/pers.that's %s/pers.