chessboard_js 0.1.0 copy "chessboard_js: ^0.1.0" to clipboard
chessboard_js: ^0.1.0 copied to clipboard

A chessboard widget to use with chessjs. Use chessjs for the logic of the game, and this package to display the game.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'chess_game.dart';


/// This example shows how to use the chessboard widget.
/// The property [_isUserWhite] is set to [UserPlayer.any], so both sides
/// can move, to only play with white we can set this property to [UserPlayer.isWhite]
/// and pass the black move programmatically using the controller. The
/// [enableKeyboard] property is set to true so, the game
/// can also be iterated with the right/left arrow keyboards

void main() {
  runApp(MaterialApp(home: ChessGame()));
}
3
likes
110
pub points
1%
popularity

Publisher

verified publishercarlosalejano.app

A chessboard widget to use with chessjs. Use chessjs for the logic of the game, and this package to display the game.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

audioplayers, chessjs, equatable, flutter, flutter_web_plugins, tuple

More

Packages that depend on chessboard_js