Skip to content

Commit 0156756

Browse files
committed
added jitpack version markdown link in readme
1 parent 9dc203f commit 0156756

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ dependencies {
3737
}
3838
```
3939

40+
where `<version>` is one available in [![](https://www.jitpack.io/v/SmartToolFactory/Compose-BeforeAfter.svg)](https://www.jitpack.io/#SmartToolFactory/Compose-BeforeAfter)
41+
4042
## BeforeAfterImage
4143

4244
Image that takes two `ImageBitmaps as parameter and displays them based on specified order.
@@ -93,7 +95,7 @@ internal fun DefaultOverlay(
9395
height: Dp,
9496
position: Offset,
9597
overlayStyle: OverlayStyle
96-
)
98+
)
9799
```
98100

99101
```kotlin
@@ -226,7 +228,7 @@ fun BeforeAfterLayout(
226228
afterContent: @Composable () -> Unit,
227229
beforeLabel: @Composable BoxScope.() -> Unit = { BeforeLabel(contentOrder = contentOrder) },
228230
afterLabel: @Composable BoxScope.() -> Unit = { AfterLabel(contentOrder = contentOrder) },
229-
)
231+
)
230232
```
231233

232234

@@ -317,8 +319,8 @@ BeforeAfterLayout(
317319

318320
**Display before and after videos with Exoplayer**
319321

320-
### ⚠️ Note there is a bug with Exoplayer2.
321-
If you have a fix please open a PR or answer
322+
### ⚠️ Note there is a bug with Exoplayer2.
323+
If you have a fix please open a PR or answer
322324
[this question](https://stackoverflow.com/questions/73061216/exoplayer2-with-before-after-videos-changes-first-video-when-clip-and-shape-used)
323325
Both are appreciated greatly
324326

0 commit comments

Comments
 (0)