Skip to content

Commit

Permalink
Adding New icons (#29)
Browse files Browse the repository at this point in the history
* Adding New icons

* Update DropdownComponent.kt

Co-authored-by: Andrés Miguel Rubio <[email protected]>
  • Loading branch information
mvmmacamo2 and andresmr committed Feb 8, 2023
1 parent 46e43f1 commit a4feade
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/src/main/assets/paperwork.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"buildTime":"2022-11-30 14:11","gitSha":"ce4a62731"}
{"buildTime":"2022-11-29 16:42","gitSha":"9b13dc04d"}
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ import androidx.compose.material.MaterialTheme
import androidx.compose.material.OutlinedTextField
import androidx.compose.material.Text
import androidx.compose.material.TextFieldDefaults
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.KeyboardArrowDown
import androidx.compose.material.icons.filled.KeyboardArrowUp
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
Expand Down Expand Up @@ -85,9 +82,9 @@ fun DropdownComponent(
var textFieldSize by remember { mutableStateOf(Size.Zero) }

val icon = if (isExpanded) {
Icons.Filled.KeyboardArrowUp
painterResource(id = R.drawable.ic_arrow_drop_up)
} else {
Icons.Filled.KeyboardArrowDown
painterResource(id = R.drawable.ic_arrow_drop_down)
}

val interactionSource = remember { MutableInteractionSource() }
Expand Down Expand Up @@ -219,9 +216,9 @@ fun DropdownComponentFacilities(
}

val icon = if (isExpanded) {
Icons.Filled.KeyboardArrowUp
painterResource(id = R.drawable.ic_arrow_drop_up)
} else {
Icons.Filled.KeyboardArrowDown
painterResource(id = R.drawable.ic_arrow_drop_down)
}

val interactionSource = remember { MutableInteractionSource() }
Expand Down Expand Up @@ -353,9 +350,9 @@ fun DropdownComponentDistributedTo(
}

val icon = if (isExpanded) {
Icons.Filled.KeyboardArrowUp
painterResource(id = R.drawable.ic_arrow_drop_up)
} else {
Icons.Filled.KeyboardArrowDown
painterResource(id = R.drawable.ic_arrow_drop_down)
}

val interactionSource = remember { MutableInteractionSource() }
Expand Down
5 changes: 5 additions & 0 deletions stock-managment/src/main/res/drawable/ic_arrow_drop_down.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="#000000"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M7,10l5,5 5,-5z"/>
</vector>
5 changes: 5 additions & 0 deletions stock-managment/src/main/res/drawable/ic_arrow_drop_up.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="#000000"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M7,14l5,-5 5,5z"/>
</vector>

0 comments on commit a4feade

Please sign in to comment.