playing_cards_lib 0.0.3+1 copy "playing_cards_lib: ^0.0.3+1" to clipboard
playing_cards_lib: ^0.0.3+1 copied to clipboard

A library for non ui server side cards logic for standard 52 card decks in your Dart or Flutter app.

playing_cards #

The playing_cards package for Flutter allows you to easily use playing cards from a standard 52 card deck. This is for programtic handling of cards and for UI , follow the package https://github.com/yehigo/playing_cards untill merged in original package mentioned below.

This is abstracted NON UI logic from the package : https://github.com/bedardjo/playing_cards

Getting Started #

To import:

import 'package:playing_cards_lib/playing_cards_lib.dart';

And here is a simple usage to render a nine of clubs:

card = PlayingCard(Suit.clubs, CardValue.nine)

Jokers #

Jokers are modelled as two joker CardValues (joker_1, joker_2) in a single joker Suit.

You can use the standardFiftyFourCardDeck() function in deck.dart to create a deck with two Jokers.

0
likes
160
points
0
downloads

Publisher

verified publisheryehigo.com

Weekly Downloads

A library for non ui server side cards logic for standard 52 card decks in your Dart or Flutter app.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

More

Packages that depend on playing_cards_lib