Skip to content

Commit

Permalink
belindas-closet-android-2-204-add-menu-to-add-product-page (#203)
Browse files Browse the repository at this point in the history
* AddProductPage

* leaving comment to trigger CI

---------

Co-authored-by: taylorpapke <[email protected]>
Co-authored-by: BC Ko <[email protected]>
  • Loading branch information
3 people authored Nov 28, 2023
1 parent 6c168df commit a760f64
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/src/main/java/com/example/belindas_closet/screen/AddProduct.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.filled.Menu
import androidx.compose.material3.Button
import androidx.compose.material3.DropdownMenu
import androidx.compose.material3.DropdownMenuItem
Expand Down Expand Up @@ -71,6 +72,7 @@ fun AddProductPage(navController: NavHostController) {
*/

/* Back arrow that navigates back to login page */
//comment for CI
TopAppBar(
title = { Text("Home") }, /* todo: change destination where arrow navigates to */
navigationIcon = {
Expand All @@ -81,7 +83,17 @@ fun AddProductPage(navController: NavHostController) {
) {
Icon(imageVector = Icons.Default.ArrowBack, contentDescription = "Back")
}
},
actions = {
IconButton(
onClick = {
// Handle menu icon click
}
) {
Icon(imageVector = Icons.Default.Menu, contentDescription = "Menu")
}
}

)

Column(
Expand Down

0 comments on commit a760f64

Please sign in to comment.