Last active
October 13, 2019 15:20
-
-
Save Dev-Owl/68c10f89e2eab48ddb76bba79c502490 to your computer and use it in GitHub Desktop.
Main Widget Part 1
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
final _game = GameOfLife(); | |
Size _cellSize; | |
@override | |
void initState() { | |
super.initState(); | |
//Fullscreen display (still including appbar) | |
SystemChrome.setEnabledSystemUIOverlays([]); | |
_game.resetWorld(); | |
} | |
void _toggleGame() { | |
setState(() { | |
_game.toggleGame(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment