firebase_storage_hooks 0.0.1+14 copy "firebase_storage_hooks: ^0.0.1+14" to clipboard
firebase_storage_hooks: ^0.0.1+14 copied to clipboard

discontinuedreplaced by: riverpod

Hooks used for common firebase storage operations such as selecting and uploading file(s)

110/ 160
pub points
0
downloads

We analyzed this package 2 days ago, and awarded it 110 pub points (of a possible 160):

Partially passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Partially passed check 10/10 points: Provide a valid pubspec.yaml

Homepage URL doesn't exist.

At the time of the analysis https://github.com/Nolence/firebase_hooks/tree/main/packages/firebase_storage_hooks was unreachable. Make sure that the website is reachable via HEAD requests.

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

45 out of 89 API elements (50.6 %) have documentation comments.

Some symbols that are missing documentation: firebase_storage_hooks, firebase_storage_hooks.AsyncSnapshotWithProgress.progress, firebase_storage_hooks.CommitHandler.CommitHandler.new, firebase_storage_hooks.CommitHandler.value, firebase_storage_hooks.CommitsHandler.CommitsHandler.new.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ macOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:firebase_storage_hooks/firebase_storage_hooks.dart that imports:
  • package:firebase_storage_hooks/src/storage_files.dart that imports:
  • package:firebase_storage_hooks/src/models/storage_files_handler.dart that imports:
  • package:firebase_storage/firebase_storage.dart that declares support for platforms: Android, iOS, macOS, Web.
Package does not support platform `Linux`.

Because:

  • package:firebase_storage_hooks/firebase_storage_hooks.dart that imports:
  • package:firebase_storage_hooks/src/storage_files.dart that imports:
  • package:firebase_storage_hooks/src/models/storage_files_handler.dart that imports:
  • package:firebase_storage/firebase_storage.dart that declares support for platforms: Android, iOS, macOS, Web.
Package not compatible with platform Web

Because:

  • package:firebase_storage_hooks/firebase_storage_hooks.dart that imports:
  • package:firebase_storage_hooks/src/storage_files.dart that imports:
  • package:firebase_storage_hooks/src/models/storage_files_handler.dart that imports:
  • package:firebase_storage/firebase_storage.dart that imports:
  • package:firebase_storage_platform_interface/firebase_storage_platform_interface.dart that imports:
  • package:firebase_storage_platform_interface/src/platform_interface/platform_interface_reference.dart that imports:
  • dart:io

These issues are present but do not affect the score, because they may not originate in your package:

Package does not support platform `Android`.

Because:

  • package:firebase_storage_hooks/firebase_storage_hooks.dart that imports:
  • package:firebase_storage_hooks/src/storage_files.dart that imports:
  • package:firebase_storage_hooks/src/files.dart that imports:
  • package:file_picker/file_picker.dart that imports:
  • package:file_picker/src/file_picker.dart that imports:
  • package:file_picker/src/windows/file_picker_windows.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Package does not support platform `iOS`.

Because:

  • package:firebase_storage_hooks/firebase_storage_hooks.dart that imports:
  • package:firebase_storage_hooks/src/storage_files.dart that imports:
  • package:firebase_storage_hooks/src/files.dart that imports:
  • package:file_picker/file_picker.dart that imports:
  • package:file_picker/src/file_picker.dart that imports:
  • package:file_picker/src/windows/file_picker_windows.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Package does not support platform `macOS`.

Because:

  • package:firebase_storage_hooks/firebase_storage_hooks.dart that imports:
  • package:firebase_storage_hooks/src/storage_files.dart that imports:
  • package:firebase_storage_hooks/src/files.dart that imports:
  • package:file_picker/file_picker.dart that imports:
  • package:file_picker/src/file_picker.dart that imports:
  • package:file_picker/src/windows/file_picker_windows.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Failed report section
Pass static analysis
30 / 50trigger folding of the section

Failed check 30/50 points: code has no errors, warnings, lints, or formatting issues

Found 14 issues. Showing the first 2:

WARNING: Duplicate export.

lib/firebase_storage_hooks.dart:11:8

   ╷
11 │ export 'package:firebase_storage_hooks/src/models/files_handler.dart';
   │        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/firebase_storage_hooks.dart

WARNING: This function has a nullable return type of 'FutureOr

lib/src/files.dart:26:31

   ╷
26 │   Future<List<PlatformFile>?> select() async {
   │                               ^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/files.dart

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
file_picker ^4.0.0 4.6.1 10.3.10
firebase_hooks_core ^0.0.1 0.0.1+2 0.0.1+2 Discontinued
firebase_storage >=8.0.0 <11.0.0 10.3.11 13.0.6
flutter_hooks ^0.18.0 0.18.6 0.21.3+1
path ^1.8.0 1.9.1 1.9.1
Transitive dependencies
Package Constraint Compatible Latest Notes
_flutterfire_internals - 1.0.2 1.3.66
async - 2.13.0 2.13.0
boolean_selector - 2.1.2 2.1.2
characters - 1.4.0 1.4.1
clock - 1.1.2 1.1.2
cloud_firestore_platform_interface - 5.7.7 7.0.6
cloud_firestore_web - 2.8.10 5.1.2
collection - 1.19.1 1.19.1
fake_async - 1.3.3 1.3.3
ffi - 1.2.1 2.2.0
firebase_core - 1.24.0 4.4.0
firebase_core_platform_interface - 4.8.0 6.0.2
firebase_core_web - 1.7.3 3.4.0
firebase_storage_platform_interface - 4.1.19 5.2.17
firebase_storage_web - 3.3.9 3.11.2
flutter_plugin_android_lifecycle - 2.0.33 2.0.33
http - 0.13.6 1.6.0
http_parser - 4.1.2 4.1.2
js - 0.6.7 0.7.2 Discontinued
leak_tracker - 11.0.2 11.0.2
leak_tracker_flutter_testing - 3.0.10 3.0.10
leak_tracker_testing - 3.0.2 3.0.2
matcher - 0.12.17 0.12.18
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.18.1
plugin_platform_interface - 2.1.8 2.1.8
source_span - 1.10.2 1.10.2
stack_trace - 1.12.1 1.12.1
stream_channel - 2.1.4 2.1.4
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
test_api - 0.7.7 0.7.9
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.2.0
vm_service - 15.0.2 15.0.2
win32 - 2.6.1 5.15.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Found 4 issues. Showing the first 2:

The constraint `^4.0.0` on file_picker does not support the stable version `5.0.0`.

Try running dart pub upgrade --major-versions file_picker to update the constraint.

The constraint `>=8.0.0 <11.0.0` on firebase_storage does not support the stable version `11.0.0`.

Try running dart pub upgrade --major-versions firebase_storage to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 14 errors:

  • NON_TYPE_AS_TYPE_ARGUMENT - lib/src/models/storage_file_handler.dart:34:25 - The name 'AsyncSnapshotWithProgress' isn't a type, so it can't be used as a type argument.
  • UNDEFINED_CLASS - lib/src/models/storage_files_handler.dart:25:9 - Undefined class 'AsyncSnapshotWithProgress'.
  • CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE - lib/src/storage_file.dart:42:7 - Const variables must be initialized with a constant value.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.23.9, Flutter 3.38.9, Dart 3.10.8.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
1
likes
110
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

Hooks used for common firebase storage operations such as selecting and uploading file(s)

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

file_picker, firebase_hooks_core, firebase_storage, flutter, flutter_hooks, path

More

Packages that depend on firebase_storage_hooks