Ajout du bouton, je regarde la doc pour voir comment on navigue ...

navigationHost
Shana CASCARRA 3 months ago
parent 2c6f66eabd
commit c2abb90896

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

@ -22,7 +22,7 @@ private val DarkColorScheme = darkColorScheme(
)
private val LightColorScheme = lightColorScheme(
primary = Purple40,
primary = Salmon,
secondary = PurpleGrey40,
tertiary = Salmon

Loading…
Cancel
Save