Last active
August 24, 2021 09:54
-
-
Save juskek/f87ce7789cad0abee4aa01dead27d504 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// in pubspec.yaml | |
flame: ^0.29.4 | |
// in main.dart | |
import 'package:flutter/material.dart'; | |
import 'package:flame/game.dart'; // for creating Game class | |
import 'package:flame/gestures.dart'; // for TapDetector mixin | |
import 'package:flutter/gestures.dart'; // for TapDownDetails class | |
import 'dart:ui'; // for Canvas and Size | |
// in console | |
flutter run --no-sound-null-safety |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment