Skip to content

Comments

An auto reveal system with a scratching animation#60

Open
QuentinFringhian wants to merge 1 commit intovintage:masterfrom
QuentinFringhian:master
Open

An auto reveal system with a scratching animation#60
QuentinFringhian wants to merge 1 commit intovintage:masterfrom
QuentinFringhian:master

Conversation

@QuentinFringhian
Copy link

This Pr adds a function working like the reveal methods but with some kind of a scratching animation.

@override
void didUpdateWidget(covariant Scratcher oldWidget) {
if (widget.autoScratching && _autoScratchTimer == null) {
autoScratch(totalDuration: const Duration(seconds: 1));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'aurais passé la totalDuration en paramètres du widget principal aussi je pense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants