From bc9bf5dafacc11821184b089f9fe470435267f0f Mon Sep 17 00:00:00 2001 From: syonip Date: Mon, 9 Dec 2019 23:36:17 +0200 Subject: [PATCH] [firebase_storage] add ensureInitialized (#1541) * [firebase_storage] add ensureInitialized --- packages/firebase_storage/CHANGELOG.md | 4 ++++ packages/firebase_storage/example/lib/main.dart | 2 ++ packages/firebase_storage/pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/firebase_storage/CHANGELOG.md b/packages/firebase_storage/CHANGELOG.md index 842090eac7cf..4cdacf3601fb 100644 --- a/packages/firebase_storage/CHANGELOG.md +++ b/packages/firebase_storage/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.0.10 + +* Fix example app by adding a call to `ensureInitialized`. + ## 3.0.9 * Support the v2 Android embedding. diff --git a/packages/firebase_storage/example/lib/main.dart b/packages/firebase_storage/example/lib/main.dart index f388435938c2..b65f9fcb9d97 100755 --- a/packages/firebase_storage/example/lib/main.dart +++ b/packages/firebase_storage/example/lib/main.dart @@ -14,6 +14,8 @@ import 'package:uuid/uuid.dart'; const String kTestString = 'Hello world!'; void main() async { + WidgetsFlutterBinding.ensureInitialized(); + final FirebaseApp app = await FirebaseApp.configure( name: 'test', options: FirebaseOptions( diff --git a/packages/firebase_storage/pubspec.yaml b/packages/firebase_storage/pubspec.yaml index c31b5eb35244..db1b1f1a2bf6 100755 --- a/packages/firebase_storage/pubspec.yaml +++ b/packages/firebase_storage/pubspec.yaml @@ -3,7 +3,7 @@ description: Flutter plugin for Firebase Cloud Storage, a powerful, simple, and cost-effective object storage service for Android and iOS. author: Flutter Team homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_storage -version: 3.0.9 +version: 3.0.10 flutter: plugin: