bump svg dependency and fix example app to call ensure initialized method

This commit is contained in:
Luan Nico
2019-12-09 08:26:50 -05:00
parent 5102600a6a
commit 820fed2e52
5 changed files with 10 additions and 2 deletions

View File

@ -3,6 +3,7 @@
## 0.17.2
- Added backgroundColor method for overriding the game background (thanks @wolfenrain)
- Update AudioPlayers version to 0.13.5
- Bump SVG dependency plus fix example app
## 0.17.1
- Added default render function for Box2D ChainShape

View File

@ -0,0 +1 @@
{"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"audioplayers","dependencies":["path_provider"]},{"name":"path_provider","dependencies":[]}]}

View File

@ -5,7 +5,12 @@ import 'package:flame/components/component.dart' show SvgComponent;
import 'package:flutter/material.dart';
void main() => runApp(MyGame().widget);
void main() {
WidgetsFlutterBinding.ensureInitialized();
final game = MyGame();
runApp(game.widget);
}
class MyGame extends BaseGame {
Svg svgInstance;

View File

@ -0,0 +1 @@
{"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"audioplayers","dependencies":["path_provider"]},{"name":"path_provider","dependencies":[]}]}

View File

@ -13,7 +13,7 @@ dependencies:
synchronized: ^2.1.0
tiled: ^0.2.1
convert: ^2.0.1
flutter_svg: ^0.14.0
flutter_svg: ^0.15.0
flare_flutter: ^1.5.4
dev_dependencies: