Skip to content

Commit

Permalink
[firebase_storage] add ensureInitialized (firebase#1541)
Browse files Browse the repository at this point in the history
* [firebase_storage] add ensureInitialized
  • Loading branch information
syonip authored and collinjackson committed Dec 9, 2019
1 parent a766672 commit bc9bf5d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/firebase_storage/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.10

* Fix example app by adding a call to `ensureInitialized`.

## 3.0.9

* Support the v2 Android embedding.
Expand Down
2 changes: 2 additions & 0 deletions packages/firebase_storage/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase_storage/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_storage
version: 3.0.9
version: 3.0.10

flutter:
plugin:
Expand Down

0 comments on commit bc9bf5d

Please sign in to comment.