|
|
@ -56,6 +56,7 @@ import androidx.compose.ui.tooling.preview.Preview
|
|
|
|
import androidx.compose.ui.unit.dp
|
|
|
|
import androidx.compose.ui.unit.dp
|
|
|
|
import androidx.compose.ui.unit.sp
|
|
|
|
import androidx.compose.ui.unit.sp
|
|
|
|
import androidx.navigation.NavController
|
|
|
|
import androidx.navigation.NavController
|
|
|
|
|
|
|
|
import coil.compose.AsyncImage
|
|
|
|
import com.example.what_the_fantasy.R
|
|
|
|
import com.example.what_the_fantasy.R
|
|
|
|
import com.example.what_the_fantasy.data.local.QuestionStub
|
|
|
|
import com.example.what_the_fantasy.data.local.QuestionStub
|
|
|
|
import com.example.what_the_fantasy.data.local.UserStub
|
|
|
|
import com.example.what_the_fantasy.data.local.UserStub
|
|
|
@ -69,7 +70,7 @@ fun ProfilPage() {
|
|
|
|
end = Offset(1000f, 0f) // Fin en haut à droite
|
|
|
|
end = Offset(1000f, 0f) // Fin en haut à droite
|
|
|
|
)
|
|
|
|
)
|
|
|
|
val user = UserStub.allUsers
|
|
|
|
val user = UserStub.allUsers
|
|
|
|
val index = 5 // Pour changer l'utilisateur pour le moment
|
|
|
|
val index = 2 // Pour changer l'utilisateur pour le moment
|
|
|
|
|
|
|
|
|
|
|
|
Box(
|
|
|
|
Box(
|
|
|
|
modifier = Modifier
|
|
|
|
modifier = Modifier
|
|
|
@ -139,15 +140,14 @@ fun TitleProfil(titleResId : Int, size : Int, color : Color){
|
|
|
|
@Composable
|
|
|
|
@Composable
|
|
|
|
fun ImageProfil(imgProfil : String, size :Int, sizeBorber : Int, colorBorder : Color){
|
|
|
|
fun ImageProfil(imgProfil : String, size :Int, sizeBorber : Int, colorBorder : Color){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AsyncImage(
|
|
|
|
Image(
|
|
|
|
model = imgProfil,
|
|
|
|
painter = painterResource(imgProfil),
|
|
|
|
|
|
|
|
contentDescription = "Photo de profil",
|
|
|
|
contentDescription = "Photo de profil",
|
|
|
|
modifier = Modifier
|
|
|
|
modifier = Modifier
|
|
|
|
.size(size.dp)
|
|
|
|
.size(size.dp)
|
|
|
|
.clip(CircleShape)
|
|
|
|
.clip(CircleShape)
|
|
|
|
.border(sizeBorber.dp, colorBorder, CircleShape)
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|