mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-04 04:47:13 +08:00
bump svg dependency and fix example app to call ensure initialized method
This commit is contained in:
@ -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
|
||||
|
||||
1
doc/examples/svg/.flutter-plugins-dependencies
Normal file
1
doc/examples/svg/.flutter-plugins-dependencies
Normal 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":[]}]}
|
||||
@ -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;
|
||||
|
||||
1
example/.flutter-plugins-dependencies
Normal file
1
example/.flutter-plugins-dependencies
Normal 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":[]}]}
|
||||
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user