We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After adding 13 items, I am not able to scroll items in the CapturedView.
For solution:
In CapturedView composable function we can add Row modifier horizontalScroll with scrollState parameter and fillMaxWidth()
I can open PR if you allow me to do this.
val scrollState = rememberScrollState() Row( modifier = Modifier .background(MaterialTheme.colors.surface) .height(CAPTURED_PIECE_SIZE) .fillMaxWidth() .horizontalScroll(scrollState) .then(modifier) ) { pieces.forEach { PieceView(piece = it, modifier = Modifier.width(CAPTURED_PIECE_SIZE).height(CAPTURED_PIECE_SIZE)) } }
Thanks
The text was updated successfully, but these errors were encountered:
After adding 13 items, I am not able to scroll items in the CapturedView. For solution: In CapturedView composable function we can add Row modifier horizontalScroll with scrollState parameter and fillMaxWidth() I can open PR if you allow me to do this. val scrollState = rememberScrollState() Row( modifier = Modifier .background(MaterialTheme.colors.surface) .height(CAPTURED_PIECE_SIZE) .fillMaxWidth() .horizontalScroll(scrollState) .then(modifier) ) { pieces.forEach { PieceView(piece = it, modifier = Modifier.width(CAPTURED_PIECE_SIZE).height(CAPTURED_PIECE_SIZE)) } } Thanks
Sorry, something went wrong.
@Zego001
要是哪个很牛逼的人写出一个中国象棋的程序出来,有单机游戏的那种人工智能,不谋利,把代码共享到github,那时一件多美妙的事
No branches or pull requests
After adding 13 items, I am not able to scroll items in the CapturedView.
For solution:
In CapturedView composable function we can add Row modifier horizontalScroll with scrollState parameter and fillMaxWidth()
I can open PR if you allow me to do this.
Thanks
The text was updated successfully, but these errors were encountered: