Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lunch PuzzleApp from another page not main page #2

Open
lesiaki opened this issue Jun 7, 2019 · 1 comment
Open

lunch PuzzleApp from another page not main page #2

lesiaki opened this issue Jun 7, 2019 · 1 comment

Comments

@lesiaki
Copy link

lesiaki commented Jun 7, 2019

class PuzzlePage extends StatefulWidget {

final int columns;
final int rows;

PuzzlePage({int columns = 3, int rows = 3})
: columns = columns ?? 3,
rows = rows ?? 3;

@OverRide
PuzzleHomeState createState() =>
PuzzleHomeState(PuzzleAnimator(columns, rows));
}

@imtiyaz125
Copy link

just initialise _lastElapsed at the time of declaration
i.e like this Duration _lastElapsed=Duration.zero;

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

No branches or pull requests

2 participants