Skip to content

Conversation

@vovagorodok
Copy link
Contributor

@vovagorodok vovagorodok commented Apr 19, 2025

Current settings buttons doesn't fit screen width:
drawing
Changes:

  • using Wrap instead of rows for settings
  • changed way of displaying setting ElevatedButton content
  • added New Round button
  • changed Undo button
    drawing drawing

Same for Landscape orientation:
drawing
But here still some issue with scaling:
drawing
Something going wrong when board inside Expanded:

Expanded(
  child:  Chessboard(.
    size: screenWidth, // ??
  ..),
),
Expanded(
...
),

Checked flutter_chess_board library and looks it performs correctly:
drawing drawing
but maybe it is issue to resolve on another PR

@vovagorodok
Copy link
Contributor Author

vovagorodok commented Apr 19, 2025

Commited workaround for Landscape scaling issue:

child: LayoutBuilder(
  builder: (context, constraints) {
    return Chessboard(
      size: min(constraints.maxWidth, constraints.maxHeight),
drawing

@vovagorodok vovagorodok changed the title Example change Example buttons update and orientation fix Apr 22, 2025
@veloce veloce merged commit db929b0 into lichess-org:main Apr 28, 2025
1 check passed
@veloce
Copy link
Collaborator

veloce commented Apr 28, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants