Skip to content

Commit e386be4

Browse files
update EnhancedZoomDemo flags
1 parent f1a4b62 commit e386be4

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

app/src/main/java/com/smarttoolfactory/composeimage/demo/zoom/EnhancedZoomDemo.kt

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ private fun EnhancedZoomModifierSample(imageBitmap: ImageBitmap) {
6565
)
6666

6767
Text(
68-
text = "Modifier.zoom(clip = true, limitPan = false, moveToBoundsEnabled = true)",
68+
text = "clip = true\n" +
69+
"limitPan = false\n" +
70+
"moveToBoundsEnabled = true",
6971
fontSize = 16.sp,
7072
fontWeight = FontWeight.Bold,
7173
color = MaterialTheme.colorScheme.primary,
@@ -93,7 +95,9 @@ private fun EnhancedZoomModifierSample(imageBitmap: ImageBitmap) {
9395

9496
Spacer(modifier = Modifier.height(40.dp))
9597
Text(
96-
text = "Modifier.zoom(clip = true, limitPan = true, moveToBoundsEnabled = true)",
98+
text = "clip = true\n" +
99+
"limitPan = true\n" +
100+
"moveToBoundsEnabled = true",
97101
fontSize = 16.sp,
98102
fontWeight = FontWeight.Bold,
99103
color = MaterialTheme.colorScheme.primary,
@@ -121,8 +125,10 @@ private fun EnhancedZoomModifierSample(imageBitmap: ImageBitmap) {
121125

122126
Spacer(modifier = Modifier.height(40.dp))
123127
Text(
124-
text = "Modifier.zoom(clip = true, limitPan = true, moveToBoundsEnabled = true" +
125-
"flingGestureEnabled = true)",
128+
text = "clip = true\n" +
129+
"limitPan = true\n" +
130+
"moveToBoundsEnabled = true\n" +
131+
"flingGestureEnabled = true",
126132
fontSize = 16.sp,
127133
fontWeight = FontWeight.Bold,
128134
color = MaterialTheme.colorScheme.primary,
@@ -150,8 +156,10 @@ private fun EnhancedZoomModifierSample(imageBitmap: ImageBitmap) {
150156

151157
Spacer(modifier = Modifier.height(40.dp))
152158
Text(
153-
text = "Modifier.zoom(clip = true, rotate = true, moveToBoundsEnabled = false, " +
154-
"flingGestureEnabled = true)",
159+
text = "clip = true\n" +
160+
"rotate = true\n" +
161+
"moveToBoundsEnabled = false\n" +
162+
"flingGestureEnabled = true",
155163
fontSize = 16.sp,
156164
fontWeight = FontWeight.Bold,
157165
color = MaterialTheme.colorScheme.primary,

0 commit comments

Comments
 (0)