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

outdated

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 null, so both sides
/// can move, to only play with white we can set this property to true
/// 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
120
pub points
28%
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