Game programming with Flutter and Flame

A very nice video tutorial to build 2D game with Flame/Flutter.

I’m new to Flutter and Dart. I usually write in Python and wrote some Java decade ago. Dart is reasonable intuitive if one is familiar with Java or C/C++/C#. I came across some issues going through the tutorial though.

  1. I use Ubuntu 16.04 and snap install doesn’t work out of the box. AndroidStudio doesn’t know where to find the flutter sdk and I have to input that manually (/home/(username)/snap/flutter/common/flutter).
  2. The great thing about Flutter is one code for multiple platform. It support webapp development but it seems that only dev and master channels support that (flutter channel master).
  3. flutter_svg dependency build failed. I have to use flutter_svg: ^0.18.0 to work.
  4. ServicesBinding.defaultBinaryMessenger was accessed before the binding was initialized. A very confusing error message, a workaround is to include WidgetsFlutterBinding.ensureInitialized(); before everything else.

Leave a Reply

Your email address will not be published. Required fields are marked *