We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d2e048 commit ddee103Copy full SHA for ddee103
app/src/main/java/es/cibernarium/jetpackcomposeapp/MainActivity.kt
@@ -97,7 +97,7 @@ class MainActivity : ComponentActivity() {
97
modifier = Modifier.padding(15.dp)
98
) {
99
SalutacioPersonal(nom = dades.nom)
100
- Description(description = dades.description)
+ Description(description = dades.description, linies = 1)
101
}
102
103
@@ -124,6 +124,6 @@ class MainActivity : ComponentActivity() {
124
)
125
126
@Composable
127
- fun Description(description: String){
128
- Text(text = description)
+ fun Description(description: String,linies: Int = Int.MAX_VALUE){
+ Text(text = description, maxLines = linies)
129
0 commit comments