Skip to content

Commit 0fb5f72

Browse files
authored
Update README.md
1 parent 2e86466 commit 0fb5f72

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
11
# ComposeOverscroll
22
Overscroll any scrollable items!
3+
4+
## Preview
5+
6+
https://user-images.githubusercontent.com/21119517/205872216-905bfd0a-e149-4d48-b61e-0a503b87fb08.mp4
7+
8+
9+
## How to use
10+
11+
### for column :
12+
```
13+
Column(Modifier
14+
.fillMaxSize()
15+
.overScrollVertical() // invoke before the scrollable Modifier
16+
.verticalScroll(rememberScrollState())
17+
) { ... }
18+
```
19+
### for scrollable Composable like lazyColumn :
20+
```
21+
LazyColumn(Modifier
22+
.fillMaxWidth()
23+
.height(300.dp)
24+
.overScrollVertical()
25+
) { ... }
26+
```
27+
### U can call it nested! pls see the demo!
28+

0 commit comments

Comments
 (0)