Aaron Waller
05/14/2022, 1:44 PMLazyColumn(...) {
item {
//Header with ProfilePicture and followers
}
stickyHeader {
TabRow(...) //Sticky TabRow with "Posts" and "Likes"
}
item {
//Pager with two lists (posts and likes)
HorizontalPager(...) { page: Int ->
when (page) {
0 -> PostList()
1 -> LikesList()
}
}
}
}
Vertically scrollable component was measured with an infinity maximum height constraints, which is disallowed. One of the common reasons is nesting layouts like LazyColumn and Column(Modifier.verticalScroll()).
So is it not possible with Jetpack Compose?Dominaezzz
05/14/2022, 1:58 PMAaron Waller
05/14/2022, 2:10 PMval posts = listOf("Item 1", "Item 2", "Item 3", "Item 3", "Item 3", "Item 3", "Item 3", "Item 3", "Item 3", "Item 3", "Item 3")
FlowColumn() {
repeat(posts.size){
Box(Modifier.height(70.dp)) {
Text(posts[it])
}
}
}
Now I only have to create a LazyVerticalGrid behaviour out of this FlowColumn