Skip to content

Commit 499037a

Browse files
author
Section One
committed
Codi JC23 - Animacions limitant lineas a mostrar, essent clicklable i mutable en Jetpack Compose
1 parent d686de7 commit 499037a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/src/main/java/es/cibernarium/jetpackcomposeapp/MainActivity.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ import androidx.compose.material3.Scaffold
2525
import androidx.compose.material3.Surface
2626
import androidx.compose.material3.Text
2727
import androidx.compose.runtime.Composable
28+
import androidx.compose.runtime.getValue
29+
import androidx.compose.runtime.mutableStateOf
30+
import androidx.compose.runtime.remember
31+
import androidx.compose.runtime.setValue
2832
import androidx.compose.ui.Alignment
2933
import androidx.compose.ui.Modifier
3034
import androidx.compose.ui.draw.clip
@@ -93,7 +97,7 @@ class MainActivity : ComponentActivity() {
9397
@Composable
9498
fun Element(dades: Perfil){
9599
//Definim variable de control sobre l'estat de clickable
96-
var expanded = false
100+
var expanded by remember{mutableStateOf(false)}
97101
Row {
98102
Avatar()
99103
Column(

0 commit comments

Comments
 (0)