|
@@ -111,7 +111,7 @@ fun ingredients(navController: NavController) {
|
|
|
.height(560.dp)
|
|
|
.clip(RoundedCornerShape(30.dp))
|
|
|
.background(fon2)
|
|
|
- .padding(50.dp)
|
|
|
+ .padding(10.dp)
|
|
|
) {
|
|
|
|
|
|
var list = Resources.ingredients
|
|
@@ -130,14 +130,14 @@ fun ingredients(navController: NavController) {
|
|
|
painter = rememberImagePainter(item.image),
|
|
|
contentDescription = "Image in Row",
|
|
|
modifier = Modifier
|
|
|
- .size(50.dp)
|
|
|
+ .size(70.dp)
|
|
|
)
|
|
|
Text(
|
|
|
text = item.name,
|
|
|
modifier = Modifier,
|
|
|
|
|
|
color = Color.Black,
|
|
|
- fontSize = 16.sp,
|
|
|
+ fontSize = 19.sp,
|
|
|
fontWeight = FontWeight.Bold,
|
|
|
fontFamily = FontFamily.Monospace
|
|
|
)
|
|
@@ -146,9 +146,21 @@ fun ingredients(navController: NavController) {
|
|
|
viewModel.addIngredientToFridge(item.id)
|
|
|
Resources.chosenIngredients.add(
|
|
|
item
|
|
|
- )}) {
|
|
|
+ )
|
|
|
+ } ,Modifier
|
|
|
+ .background(Color.Transparent),
|
|
|
+ colors = ButtonDefaults.buttonColors(containerColor = knopka)
|
|
|
+ ) {
|
|
|
+ Text(
|
|
|
+ "+",
|
|
|
+ fontSize = 30.sp,
|
|
|
+ color = white,
|
|
|
+ fontWeight = FontWeight.SemiBold
|
|
|
+ )
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|