diff --git a/.gitignore b/.gitignore index 919f558..6ae5a40 100644 --- a/.gitignore +++ b/.gitignore @@ -74,3 +74,4 @@ build/ !**/ios/**/default.pbxuser !**/ios/**/default.perspectivev3 !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages +.flutter-plugins-dependencies diff --git a/lib/src/firebase_image.dart b/lib/src/firebase_image.dart index 2b1813a..0c97e6c 100644 --- a/lib/src/firebase_image.dart +++ b/lib/src/firebase_image.dart @@ -9,6 +9,8 @@ import 'package:firebase_storage/firebase_storage.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; +T? _ambiguate(T? value) => value; + class FirebaseImage extends ImageProvider { // Default: True. Specified whether or not an image should be cached (optional) final bool shouldCache; @@ -105,7 +107,7 @@ class FirebaseImage extends ImageProvider { } Future _fetchImageCodec() async { - return await PaintingBinding.instance! + return await _ambiguate(PaintingBinding.instance)! .instantiateImageCodec(await _fetchImage()); } diff --git a/pubspec.yaml b/pubspec.yaml index bf525b0..6af6d05 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -10,13 +10,13 @@ dependencies: flutter: sdk: flutter - firebase_core: ^1.7.0 - firebase_storage: ^10.0.5 + firebase_core: ^2.1.1 + firebase_storage: ^11.0.4 sqflite: ^2.0.0+4 path: ^1.8.0 path_provider: ^2.0.5 dev_dependencies: - flutter_lints: ^1.0.4 + flutter_lints: ^2.0.1 flutter_test: sdk: flutter