Skip to content

Instantly share code, notes, and snippets.

@graphicbeacon
Last active June 28, 2018 14:35
Show Gist options
  • Save graphicbeacon/f481e853c09cee66ef55e62ddd4d97b3 to your computer and use it in GitHub Desktop.
Save graphicbeacon/f481e853c09cee66ef55e62ddd4d97b3 to your computer and use it in GitHub Desktop.
Letter animation effect
import 'dart:async';
void main() {
List<String> alphabets = 'abcdefghijklmnopqrstuvwxyz'.split('');
var stream = new Stream.fromIterable(alphabets);
var count = 1;
stream.listen((char) {
Timer(Duration(seconds: 1 * count), () {
print(char);
});
count++;
});
}
@graphicbeacon
Copy link
Author

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