storage_manager 0.1.10 icon indicating copy to clipboard operation
storage_manager: ^0.1.10 copied to clipboard

FireStorage & DevicePersistor Manager facilitates quick implementation in your app

MIS Develop

Features #

Storage Manager for online (FireStorage) and offline (Shared Preferences) purposes

Getting started #

Add this import line

import 'package:storage_manager/storage_manager.dart';  

Usage #

Upload an image to given path

  String url = await FireUploader(path:'/collectionName/Image.png').saveImage(file);  

Or upload directly from bytes (Uint8List) to given path

  String url = await FireUploader(path:'/collectionName/Image.png').saveFileFromBytes(bytes);  
  String url = await FireUploader(path:'/collectionName/Image.png').selectAndUpload();  

Remove files from Storage Path

  bool success = await FireUploader.removeFileFromPath('/collectionName/Image.png');  

or from Storage link

  bool success = await FireUploader.removeFileFromUrl(urlLink);  

Save images, text and data to device persistor

  String localPath = await DataPersistor().saveImage('/collectionName/Image.png',bytes);  

Get images, text and data to device persistor

  var imageBytes = await DataPersistor().getImage('/collectionName/Image.png');  

Remove images, text and data to device persistor

  DataPersistor().removeImage('/collectionName/Image.png');  

Additional information #

This package assumes complete Firebase configuration with Storage and permissions.

5
likes
130
pub points
44%
popularity

Publisher

verified publisher iconmisdevelop.app

FireStorage & DevicePersistor Manager facilitates quick implementation in your app

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

firebase_storage, flash, flutter, image_picker, image_picker_for_web, shared_preferences

More

Packages that depend on storage_manager