Skip to content

Commit

Permalink
Merge pull request #85 from iot-lab-kiit/dev_manii
Browse files Browse the repository at this point in the history
changed errorImage of faculty
  • Loading branch information
basakjeet08 authored Jun 3, 2024
2 parents e839d55 + 8c67e9a commit fe06218
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import `in`.iot.lab.design.R
import `in`.iot.lab.design.theme.CustomAppTheme
import java.text.SimpleDateFormat
import java.util.TimeZone
Expand Down Expand Up @@ -88,6 +90,7 @@ fun ReviewDataUI(
AppNetworkImage(
model = photoUrl,
contentDescription = null,
errorImage = painterResource(id = R.drawable.person),
modifier = Modifier
.clip(CircleShape)
.size(48.dp),
Expand Down
5 changes: 5 additions & 0 deletions core/design/src/main/res/drawable/person.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="#7979FE" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">

<path android:fillColor="@android:color/white" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10s10,-4.48 10,-10S17.52,2 12,2zM12,6c1.93,0 3.5,1.57 3.5,3.5S13.93,13 12,13s-3.5,-1.57 -3.5,-3.5S10.07,6 12,6zM12,20c-2.03,0 -4.43,-0.82 -6.14,-2.88C7.55,15.8 9.68,15 12,15s4.45,0.8 6.14,2.12C16.43,19.18 14.03,20 12,20z"/>

</vector>
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import `in`.iot.lab.design.R
import `in`.iot.lab.design.components.AppNetworkImage
import `in`.iot.lab.design.components.AppScreen
import `in`.iot.lab.design.components.PrimaryButton
Expand Down Expand Up @@ -156,6 +158,7 @@ fun ProfileSuccessScreen(
modifier = Modifier
.clip(CircleShape)
.size(120.dp),
errorImage = painterResource(id = R.drawable.person),
model = user.photoUrl,
contentDescription = "Profile Photo"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import `in`.iot.lab.design.R
import `in`.iot.lab.design.components.AppNetworkImage
import `in`.iot.lab.design.components.AppScreen
import `in`.iot.lab.design.components.StarUI
Expand Down Expand Up @@ -126,6 +128,7 @@ fun FacultyDataUI(
AppNetworkImage(
model = photoUrl,
contentDescription = null,
errorImage = painterResource(id = R.drawable.person),
modifier = Modifier
.clip(CircleShape)
.size(56.dp),
Expand Down

0 comments on commit fe06218

Please sign in to comment.