bedardjo / playing_cards Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
How can i make the font size of the card value larger?
How can i have dark mode for the cards?
Hi there!
I'm VERY new to flutter development and this package has been SO helpful in programming my current app. My suggestion is this: a deck
widget that shows a sideview of the deck of 52 cards that changes height based on how many cards are in it (if you draw from a deck, the deck grows smaller). The playing cards wouldn't actually be IN this deck, they'd be drawn from the standard deck of 52 and then the view would rerender based on the number of cards left in that standard deck. I just don't know how to do something like this and i've tried for too long
Summary
FlatCardFan crashes when there is only one card.
Library version
0.3.1+9
How to reproduce
The following code does not render any card:
FlatCardFan( children: [ PlayingCardView( card: PlayingCard(Suit.hearts, CardValue.ace)), ], )
Analysis
I noticed that the source code for the library version 0.3.1+9
comes from the branch null-safety-impl
. In this branch FlatCardFan performs a division by zero which is the cause of the bug.
However, the master
branch fixes this bug with a nice ternary operator!
Question
My assumption is that the branch null-safety-impl
is what is released on pub.dev
, while master
branches contains yet to be released functionalities (sorry in case this assumption from my side is wrong).
Given the above assumption, I was wondering if it was possible to merge the master
version of FlatCardFan
into the null-safety-impl
branch. If you think it is fine, I am very happy to do the pull request myself.
Thank you
Notes
Thank you very much for maintaining this library. I have been using it since some days and I like it very much.
I am getting a lot of error about null Safety. Quit New to Flutter, so may be you could advise on the same.
HI ,
There are 2 issue .
1 : I have tried the card using Draggable widget . but there is delay in dragging .
2 : kept in ReorderListView too.but there is delay in dragging .
Request for Enhancement:
Can you enhance the Sorting and dragging card ?
There is a problem with Painting when in FlatCardFan is only one card.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.