From 52651eca5535fa2745fe5fef969e5cc2e6f9af39 Mon Sep 17 00:00:00 2001 From: Sam Garg Date: Wed, 18 May 2022 12:48:13 +0530 Subject: [PATCH 1/2] flutter 3.0 fix --- lib/src/firebase_image.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()); } From eb265a5795af252edaa08b8a6276e34477b5f0a4 Mon Sep 17 00:00:00 2001 From: Sam Garg Date: Tue, 8 Nov 2022 20:15:08 +0530 Subject: [PATCH 2/2] deps updated --- .gitignore | 1 + pubspec.yaml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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/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