Enable strong strict mode on dartalyzer

This commit is contained in:
Luan Nico
2020-10-14 22:36:14 -04:00
parent 91a2873edc
commit b4b20655e0
21 changed files with 63 additions and 62 deletions

View File

@ -74,7 +74,7 @@ class ParallaxLayer {
// The image size so that it fulfills the LayerFill parameter
_imageSize =
Vector2(_image.width.toDouble(), _image.height.toDouble()) / _scale;
Vector2Extension.fromInts(_image.width, _image.height) / _scale;
// Number of images that can fit on the canvas plus one
// to have something to scroll to without leaving canvas empty
@ -138,7 +138,7 @@ class ParallaxLayer {
);
}
Future<Image> _load(filename) {
Future<Image> _load(String filename) {
return Flame.images.load(filename).then((image) {
_image = image;
if (_screenSize != null) {