Skip to content

Commit b1eb212

Browse files
committed
Make the first text field in the Material 3 demo readonly to show that the pointer shows as an I-beam
1 parent 3474a2a commit b1eb212

File tree

1 file changed

+1
-0
lines changed
  • demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo

1 file changed

+1
-0
lines changed

demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo/Material3.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ fun Material3(/*modifier: Modifier = Modifier*/) {
115115
TextFieldWithMaterialIcons(
116116
text,
117117
{ text = it },
118+
readOnly = true,
118119
label = label,
119120
placeholder = placeholder,
120121
leadingIcon = Icons.Default.Add,

0 commit comments

Comments
 (0)