solitaire 0.3.1

  • Installing
  • Versions
  • 23

A Dart version of Solitaire, the classic card game.


Enjoy the online demo!


0.3.0 - Jan 25, 2014

  • Updated, LICENSE.txt and

0.2.0 - Nov 08, 2013

  • Replaced JSON package with the new convert one
  • Replaced deprecated query function with querySelector
  • Replaced deprecated context2d getter with context2D
  • Changed html.OptionElement constructor parameters, now are optionals
  • Removed dart2js warning
  • Ready for Dart 1.0.0!

0.1.2 - Mar 25, 2013

  • Removed deprecated List.fixedLength constructor
  • Changed offsetX/Y and pageX/Y for offset.x/y and page.x/y
  • Changed deprecated List.getRange for sublist
  • Changed Canvas.drawImage for drawImageScaled/FromSource

0.1.1 - Feb 21, 2013

  • M3 update
  • Added

0.1.0 - Feb 01, 2013

  • First Dart pub package release

Use this package as a library

1. Depend on it

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

  solitaire: "^0.3.1"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

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

3. Import it

Now in your Dart code, you can use:

      import 'package:solitaire/solitaire.dart';
Version Uploaded Documentation Archive
0.3.1 Jan 25, 2014 Go to the documentation of solitaire 0.3.1 Download solitaire 0.3.1 archive
0.3.0 Jan 25, 2014 Go to the documentation of solitaire 0.3.0 Download solitaire 0.3.0 archive
0.2.0 Nov 8, 2013 Go to the documentation of solitaire 0.2.0 Download solitaire 0.2.0 archive
0.1.2 Mar 25, 2013 Go to the documentation of solitaire 0.1.2 Download solitaire 0.1.2 archive
0.1.1 Feb 21, 2013 Go to the documentation of solitaire 0.1.1 Download solitaire 0.1.1 archive
0.1.0 Feb 1, 2013 Go to the documentation of solitaire 0.1.0 Download solitaire 0.1.0 archive


We analyzed this package on May 22, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.54.0
  • pana: 0.11.1


Describes how popular the package is relative to other packages. [more]
0 / 100
Code health derived from static analysis. [more]
78 / 100
Reflects how tidy and up-to-date the package is. [more]
0 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: web

Primary library: package:solitaire/solitaire.dart with components: html.


  • Use constrained dependencies.

    The pubspec.yaml contains 1 dependency without version constraints. Specify version ranges for the following dependencies: browser.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 11 errors 14 hints.

    Strong-mode analysis of lib/src/card.dart failed with the following error:

    line: 25 col: 12
    Base class introduces an invalid override. The type of 'Sprite.compareTo' ('(Sprite) → int') isn't a subtype of 'Comparable<dynamic>.compareTo' ('(dynamic) → int').

    Strong-mode analysis of lib/src/game.dart failed with the following error:

    line: 105 col: 15
    A value of type 'int' can't be assigned to a variable of type 'double'.

    Similar analysis of the following files failed:

    • lib/src/pile.dart (error)
    • lib/src/sprite.dart (error)
    • lib/src/board.dart (hint)
    • lib/src/bouncer.dart (hint)
    • lib/src/command.dart (hint)
    • lib/src/deck.dart (hint)
    • lib/src/image.dart (hint)
    • lib/src/menu.dart (hint)
    • lib/src/renderer.dart (hint)
    • lib/src/settings.dart (hint)
  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use solitaire.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.1.1
browser >=0.9.1 0.10.0+3