Created
March 3, 2023 14:09
-
-
Save vbalagovic/ed1f119ac12000fd395a8b7a60ceec98 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
void main() { | |
runApp(const MortalKombatGame()); | |
} | |
class MortalKombatGame extends StatefulWidget { | |
const MortalKombatGame({super.key}); | |
@override | |
State<MortalKombatGame> createState() => _MortalKombatGameState(); | |
} | |
class _MortalKombatGameState extends State<MortalKombatGame> { | |
final game = MortalKombat(); | |
@override | |
Widget build(BuildContext context) { | |
return GameWidget( | |
game: game, | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment