chess_vectors_flutter 1.0.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 49

chess vectors flutter #

Chess pieces vectors for Flutter. These vectors are custom widgets : they have their own size, they can also be moved (position property) inside their parent, and be resize (size property).

Getting Started #

Add whatever piece widget you want to your components tree :

  • position property takes an Offset value for positioning the piece
  • size property takes a double value for defining the piece side size (same width and height).

CREDITS #

This project is using the SVG definitions of Chess pieces from a Wikimedia Commons page

[1.0.0] - 08/08/2018.

  • Initial release : all pieces widgets can be directly integrated into your components tree, can be moved and/or resized.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  chess_vectors_flutter: ^1.0.2

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:chess_vectors_flutter/chess_vectors_flutter.dart';
  
Version Uploaded Documentation Archive
1.0.6 Aug 9, 2018 Go to the documentation of chess_vectors_flutter 1.0.6 Download chess_vectors_flutter 1.0.6 archive
1.0.4 Aug 9, 2018 Go to the documentation of chess_vectors_flutter 1.0.4 Download chess_vectors_flutter 1.0.4 archive
1.0.2 Aug 9, 2018 Go to the documentation of chess_vectors_flutter 1.0.2 Download chess_vectors_flutter 1.0.2 archive
1.0.0 Aug 8, 2018 Go to the documentation of chess_vectors_flutter 1.0.0 Download chess_vectors_flutter 1.0.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
74
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
62
Overall:
Weighted score of the above. [more]
49
Learn more about scoring.

We analyzed this package on Jun 18, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.2
  • pana: 0.12.18
  • Flutter: 1.5.4-hotfix.2

Platforms

Detected platforms:

Error(s) prevent platform classification:

Error(s) in lib/main.dart: Target of URI doesn't exist: 'package:chess_vectors_flutter.dart'.

Health issues and suggestions

Fix lib/main.dart. (-98.22 points)

Analysis of lib/main.dart failed with 14 errors, including:

line 1 col 8: Target of URI doesn't exist: 'package:chess_vectors_flutter.dart'.

line 38 col 21: The method 'WhitePawn' isn't defined for the class 'MyHomePage'.

line 39 col 21: The method 'WhiteKnight' isn't defined for the class 'MyHomePage'.

line 40 col 21: The method 'WhiteBishop' isn't defined for the class 'MyHomePage'.

line 41 col 21: The method 'WhiteRook' isn't defined for the class 'MyHomePage'.

Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Error(s) prevent platform classification:

Error(s) in lib/main.dart: Target of URI doesn't exist: 'package:chess_vectors_flutter.dart'.

Support latest dependencies. (-5 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and chess_vectors_flutter.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

The package description is too short. (-3 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <3.0.0
flutter 0.0.0
tuple ^1.0.2 1.0.2
Transitive dependencies
collection 1.14.11
matcher 0.12.5
meta 1.1.6 1.1.7
path 1.6.2
quiver 2.0.3
sky_engine 0.0.99
stack_trace 1.9.3
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test