Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 286 Bytes

ex17-1.md

File metadata and controls

28 lines (16 loc) · 286 Bytes

17.1 Adding the Flame package to Flutter

Example: Adding flame to Flutter

flutter pub add flame

Example: Pubspec.yaml

dependencies:
  flutter:
    sdk: flutter
  flame: ^1.2.0

Example: Imports

import 'package:flame/game.dart';