https://github.com/axross/firebase_storage_image
:fire: Flutter's ImageProvider for images in Firebase Cloud Storage
https://github.com/axross/firebase_storage_image
cloud-storage firebase-storage flutter
Last synced: 28 days ago
JSON representation
:fire: Flutter's ImageProvider for images in Firebase Cloud Storage
- Host: GitHub
- URL: https://github.com/axross/firebase_storage_image
- Owner: axross
- License: mit
- Created: 2018-12-23T12:19:13.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-29T12:54:49.000Z (almost 6 years ago)
- Last Synced: 2025-07-10T10:47:13.018Z (3 months ago)
- Topics: cloud-storage, firebase-storage, flutter
- Language: Dart
- Homepage: https://pub.dartlang.org/packages/firebase_storage_image
- Size: 20.5 KB
- Stars: 6
- Watchers: 1
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# firebase_storage_image
[](https://pub.dartlang.org/packages/firebase_storage_image)
Flutter's [ImageProvider](https://docs.flutter.io/flutter/painting/ImageProvider-class.html) for images in [Firebase Cloud Storage](https://firebase.google.com/docs/storage/).
## Getting Started
`FirebaseStorageImage` implements [ImageProvider](https://docs.flutter.io/flutter/painting/ImageProvider-class.html). So you can use this directly for [Image](https://docs.flutter.io/flutter/widgets/Image-class.html), [CircleAvatar](https://docs.flutter.io/flutter/material/CircleAvatar-class.html), [ImageIcon](https://docs.flutter.io/flutter/widgets/ImageIcon-class.html), and something like that.
### Example
```dart
import 'package:flutter/material.dart';
import 'package:firebase_storage_image/firebase_storage_image.dart';class YourCircleAvatar extends StatelessWidget {
@override
Widget build(BuildContext context) => const CircleAvatar(
backgroundImage: FirebaseStorageImage(
'gs://project-12345.appspot.com/path/to/avatar_image.png',
),
);
}
```## License
[MIT](LICENSE)
## Contribution
I need your help improving this package with leaving Pull Requests and Issues!