Skip to content

Commit

Permalink
Persist user shapes in memory
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Jul 8, 2024
1 parent d594824 commit 6e55503
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion lib/src/widgets/board_table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ class _BoardTableState extends ConsumerState<BoardTable> {
final board = Board(
key: widget.boardKey,
size: boardSize,
data: widget.boardData,
data: widget.boardData.copyWith(
shapes: userShapes.union(widget.boardData.shapes ?? ISet()),
),
settings: settings,
onMove: widget.onMove,
onPremove: widget.onPremove,
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ packages:
dependency: "direct main"
description:
name: chessground
sha256: a09963817456e27ba6b474ba6f0855b632245324459964ceca208423c0747567
sha256: "134a6eb0f0eaf9dbd67f32cbf30aa9921401d98797c2274fefafa815f18f54b5"
url: "https://pub.dev"
source: hosted
version: "3.0.0"
version: "3.1.0"
ci:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
dependencies:
async: ^2.10.0
cached_network_image: ^3.2.2
chessground: ^3.0.0
chessground: ^3.1.0
collection: ^1.17.0
connectivity_plus: ^6.0.2
cronet_http: ^1.3.1
Expand Down

0 comments on commit 6e55503

Please sign in to comment.