flutter_chessboard_js 0.0.1+4 flutter_chessboard_js: ^0.0.1+4 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.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_chessboard_js
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_chessboard_js: ^0.0.1+4
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_chessboard_js/chess_vectors/chess_vectors_flutter.dart';
import 'package:flutter_chessboard_js/chess_vectors/vector_image.dart';
import 'package:flutter_chessboard_js/chessboard/board_square.dart';
import 'package:flutter_chessboard_js/chessboard/chessboard.dart';
import 'package:flutter_chessboard_js/chessboard/chessboard_controller.dart';
import 'package:flutter_chessboard_js/chessboard/chessboard_notation.dart';
import 'package:flutter_chessboard_js/chessboard/constants.dart';
import 'package:flutter_chessboard_js/chessboard/resizable_draggable.dart';
import 'package:flutter_chessboard_js/chessboard/utils.dart';
import 'package:flutter_chessboard_js/flutter_chessboard.dart';