Replies: 2 comments 2 replies
-
You could try the approach as used in the ColorPicker. The board would be a Stack wrapped in GestureDetector (like |
Beta Was this translation helpful? Give feedback.
2 replies
-
I tried the solitaire approach, but when dragging a piece, the piece image and the square background is also dragged. It should have been the piece only. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I am specifically interested on the chessboard design. One that is fast in board updating when a piece is captured for example.
Taking the solitaire example, the pieces are the cards, the slots are the board squres. To capture a piece you have to remove the card at tosq slot and move the piece from the fromsq slot to the tosq slot.
The other approach is to build a list of buttons. In each button you add an image of the piece. To update when there is capture, you change the image in the button.
What could be the other possibility?
Code sample
No response
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions