You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* enableProgressWithTouch flag to enable drag and change progress with touch
152
-
* enableZoom when enabled images are zoomable and pannable
153
-
* contentOrder order of images to be drawn
154
-
* alignment determines where image will be aligned inside `BoxWithConstraints`
155
-
* This is observable when bitmap image/width ratio differs from `Canvas` that draws `ImageBitmap`
156
-
* contentDescription text used by accessibility services to describe what this image
157
-
* represents. This should always be provided unless this image is used for decorative purposes,
158
-
* and does not represent a meaningful action that a user can take. This text should be
159
-
* localized, such as by using `androidx.compose.ui.res.stringResource` or similar
160
-
* contentScale how image should be scaled inside Canvas to match parent dimensions.
155
+
***beforeImage** image that show initial progress
156
+
***afterImage** image that show final progress
157
+
***enableProgressWithTouch** flag to enable drag and change progress with touch
158
+
***enableZoom** when enabled images are zoomable and pannable
159
+
***contentOrder** order of images to be drawn
160
+
***alignment** determines where image will be aligned inside `BoxWithConstraints`
161
+
***contentScale** how image should be scaled inside Canvas to match parent dimensions.
161
162
*`ContentScale.Fit` for instance maintains src ratio and scales image to fit inside the parent.
162
-
* alpha Opacity to be applied to `beforeImage` from 0.0f to 1.0f representing
163
-
* fully transparent to fully opaque respectively
164
-
* colorFilter ColorFilter to apply to the `beforeImage` when drawn into the destination
165
-
* filterQuality Sampling algorithm applied to the `beforeImage` when it is scaled and drawn
166
-
* into the destination. The default is `FilterQuality.Low` which scales using a bilinear
167
-
* sampling algorithm
168
-
* overlay is a Composable that can be matched at exact position where `beforeImage``` is drawn.
169
-
* This is useful for drawing thumbs, cropping or another layout that should match position
170
-
with the image that is scaled is drawn
163
+
***alpha** Opacity to be applied to `beforeImage` from 0.0f to 1.0f representing fully transparent to fully opaque respectively
164
+
***colorFilter** ColorFilter to apply to the `beforeImage` when drawn into the destination
165
+
***filterQuality** Sampling algorithm applied to the `beforeImage` when it is scaled and drawn into the destination. The default is `FilterQuality.Low` which scales using a bilinear sampling algorithm
166
+
***overlay** is a Composable that can be matched at exact position where `beforeImage` is drawn. This is useful for drawing thumbs, cropping or another layout that should match position with the image that is scaled is drawn
171
167
172
168
## BeforeAfterLayout
173
169
@@ -236,7 +232,7 @@ also offers `DefaultOverlayo`
236
232
)
237
233
```
238
234
239
-
**Display Layouts with M2 and M3 together
235
+
**Display difference between Composables with Material Design2 and M3**
240
236
241
237
```kotlin
242
238
BeforeAfterLayout(
@@ -296,8 +292,9 @@ BeforeAfterLayout(
296
292
```
297
293
298
294
**Display before and after videos with Exoplayer**
299
-
Note there is a bug with Exoplayer2. If you have a fix please open a PR or
0 commit comments