Skip to content

Commit d47520b

Browse files
committed
feat : Learned DropDown
1 parent d15c0f6 commit d47520b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/src/main/java/com/syntaxspin/sakura/MainActivity.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import androidx.compose.ui.layout.*
2121
import androidx.compose.ui.text.style.*
2222
import androidx.compose.foundation.clickable
2323
import androidx.compose.runtime.mutableFloatStateOf
24-
24+
import androidx.compose.material3.*
2525

2626
//Local Context
2727
import androidx.compose.ui.platform.LocalContext
@@ -262,7 +262,7 @@ fun sliderSyntax(){
262262
fun initDropDown(){
263263
var expand by remember {mutableStateOf(false)}
264264
Button (
265-
text = "Click Me",
265+
Text("Click Me"),
266266
onClick = {expand = !expand}
267267
modifier = Modifier.padding(8.dp)
268268
)
@@ -271,11 +271,11 @@ fun initDropDown(){
271271
shape = MaterialTheme.shapes.medium,
272272
onDismissRequest={ expand = false }
273273
DropDownMenuItem(
274-
text = "SyntaxSpin",
274+
Text("SyntaxSpin"),
275275
onClick{expand = false}
276276
)
277277
DropDownMenuItem(
278-
text = "Jetpack Compose",
278+
Text("Jetpack Compose"),
279279
onClick{expand = false}
280280
)
281281
)

0 commit comments

Comments
 (0)