-
-
Save Rahiche/fb695d99f8960b24f209e87f12416896 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
floatingActionButton: FloatingActionButton(onPressed: () { | |
final cd = CountdownTimer(Duration(seconds: 10), Duration(seconds: 1)); | |
cd.listen((data) { | |
setState(() { | |
elapsed = cd.elapsed.inSeconds; | |
}); | |
}, onDone: () { | |
cd.cancel(); | |
}); | |
}), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment