Skip to content

Instantly share code, notes, and snippets.

@Dev-Owl
Last active October 13, 2019 15:20
Show Gist options
  • Save Dev-Owl/68c10f89e2eab48ddb76bba79c502490 to your computer and use it in GitHub Desktop.
Save Dev-Owl/68c10f89e2eab48ddb76bba79c502490 to your computer and use it in GitHub Desktop.
Main Widget Part 1
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