|
|
@ -1,5 +1,6 @@
|
|
|
|
package com.example.veraxapplication.ui.article
|
|
|
|
package com.example.veraxapplication.ui.article
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import androidx.compose.foundation.BorderStroke
|
|
|
|
import androidx.compose.foundation.Image
|
|
|
|
import androidx.compose.foundation.Image
|
|
|
|
import androidx.compose.foundation.background
|
|
|
|
import androidx.compose.foundation.background
|
|
|
|
import androidx.compose.foundation.border
|
|
|
|
import androidx.compose.foundation.border
|
|
|
@ -11,6 +12,8 @@ import androidx.compose.foundation.layout.size
|
|
|
|
import androidx.compose.foundation.rememberScrollState
|
|
|
|
import androidx.compose.foundation.rememberScrollState
|
|
|
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
|
|
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
|
|
|
import androidx.compose.foundation.verticalScroll
|
|
|
|
import androidx.compose.foundation.verticalScroll
|
|
|
|
|
|
|
|
import androidx.compose.material3.Button
|
|
|
|
|
|
|
|
import androidx.compose.material3.ButtonDefaults
|
|
|
|
import androidx.compose.material3.Text
|
|
|
|
import androidx.compose.material3.Text
|
|
|
|
import androidx.compose.runtime.Composable
|
|
|
|
import androidx.compose.runtime.Composable
|
|
|
|
import androidx.compose.ui.Alignment
|
|
|
|
import androidx.compose.ui.Alignment
|
|
|
@ -77,14 +80,18 @@ fun AffichageUnArticle(e : Article){
|
|
|
|
.padding(5.dp, 35.dp)
|
|
|
|
.padding(5.dp, 35.dp)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Button(onClick = { /*TODO*/ },
|
|
|
|
Column {
|
|
|
|
colors = ButtonDefaults.buttonColors(
|
|
|
|
for(c in e.contenus){
|
|
|
|
containerColor = Salmon,
|
|
|
|
Text(text = c.toString(), fontSize = 15.sp, fontFamily = FontFamily.Serif, textAlign = TextAlign.Justify, modifier = Modifier.padding(10.dp))
|
|
|
|
contentColor = Color.Black
|
|
|
|
}
|
|
|
|
),
|
|
|
|
|
|
|
|
border = BorderStroke(1.dp, Color.Black),
|
|
|
|
|
|
|
|
modifier = Modifier
|
|
|
|
|
|
|
|
.align(Alignment.CenterHorizontally)
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
Text(text = "Voir plus")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|