Skip to content

Instantly share code, notes, and snippets.

@juskek
Last active August 24, 2021 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juskek/f87ce7789cad0abee4aa01dead27d504 to your computer and use it in GitHub Desktop.
Save juskek/f87ce7789cad0abee4aa01dead27d504 to your computer and use it in GitHub Desktop.
// 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