From 6c168df8bfe95868ed5fb80ff752d0302b85e75a Mon Sep 17 00:00:00 2001 From: Annelise Blanchard <50610153+Annelisebx@users.noreply.github.com> Date: Mon, 27 Nov 2023 21:20:13 -0800 Subject: [PATCH] belindas-android_03_194_navigation-update-pages_02 (#202) * Adding menu icon to Update.kt and IndividualProductUpdate.kt * Adding menu icon to Update.kt and IndividualProductUpdate.kt --- .../belindas_closet/screen/IndividualProductUpdate.kt | 9 +++++++++ .../java/com/example/belindas_closet/screen/Update.kt | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/app/src/main/java/com/example/belindas_closet/screen/IndividualProductUpdate.kt b/app/src/main/java/com/example/belindas_closet/screen/IndividualProductUpdate.kt index 1ef32604..aaa8b401 100644 --- a/app/src/main/java/com/example/belindas_closet/screen/IndividualProductUpdate.kt +++ b/app/src/main/java/com/example/belindas_closet/screen/IndividualProductUpdate.kt @@ -22,6 +22,7 @@ import androidx.compose.material.icons.filled.Check import androidx.compose.material.icons.filled.Close import androidx.compose.material.icons.filled.Delete import androidx.compose.material.icons.filled.Edit +import androidx.compose.material.icons.filled.Menu import androidx.compose.material3.Button import androidx.compose.material3.Card import androidx.compose.material3.DropdownMenu @@ -82,6 +83,14 @@ fun IndividualProductUpdatePage(navController: NavController, productId: String) contentDescription = "Back to Home page" ) } + }, + actions = { + IconButton( + onClick = { + } + ) { + Icon(imageVector = Icons.Default.Menu, contentDescription = "Menu") + } } ) }, diff --git a/app/src/main/java/com/example/belindas_closet/screen/Update.kt b/app/src/main/java/com/example/belindas_closet/screen/Update.kt index decaf570..4713efbc 100644 --- a/app/src/main/java/com/example/belindas_closet/screen/Update.kt +++ b/app/src/main/java/com/example/belindas_closet/screen/Update.kt @@ -19,6 +19,7 @@ import androidx.compose.foundation.lazy.items import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Add import androidx.compose.material.icons.filled.ArrowBack +import androidx.compose.material.icons.filled.Menu import androidx.compose.material.icons.filled.Check import androidx.compose.material.icons.filled.Close import androidx.compose.material.icons.filled.Delete @@ -77,6 +78,14 @@ fun UpdatePage(navController: NavController) { }) { Icon(imageVector = Icons.Default.ArrowBack, contentDescription = "Back to Product Detail") } + }, + actions = { + IconButton( + onClick = { + } + ) { + Icon(imageVector = Icons.Default.Menu, contentDescription = "Menu") + } }) }, floatingActionButtonPosition = FabPosition.End,