enough_media 1.0.0 copy "enough_media: ^1.0.0" to clipboard
enough_media: ^1.0.0 copied to clipboard

PlatformAndroidiOS
outdated

Extensible collection of media viewers for preview and interactive experiences.

9
likes
140/ 160
pub points
69%
popularity

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

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: MPL-2.0.

OK
Provide documentation
20 / 20trigger folding of the section

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

601 out of 837 API elements (71.8 %) have documentation comments.

Some symbols that are missing documentation: all_interactive_media, all_preview, audio_interactive_media, audio_interactive_media.AudioInteractiveMedia.mediaProvider, enough_media.AndroidFocusGain.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:enough_media/enough_media.dart that imports:
  • package:chewie/chewie.dart that imports:
  • package:chewie/src/material/material_desktop_controls.dart that imports:
  • package:video_player/video_player.dart that declares support for platforms: Android, iOS, macOS, Web.
Package does not support platform `Linux`.

Because:

  • package:enough_media/enough_media.dart that imports:
  • package:chewie/chewie.dart that imports:
  • package:chewie/src/material/material_desktop_controls.dart that imports:
  • package:video_player/video_player.dart that declares support for platforms: Android, iOS, macOS, Web.
Package does not support platform `macOS`.

Because:

  • package:enough_media/enough_media.dart that imports:
  • package:chewie/chewie.dart that imports:
  • package:chewie/src/material/material_desktop_controls.dart that imports:
  • package:chewie/src/chewie_player.dart that imports:
  • package:wakelock/wakelock.dart that imports:
  • package:wakelock_windows/wakelock_windows.dart that imports:
  • package:win32/win32.dart that declares support for platforms: Windows.
Package does not support platform `Web`.

Because:

  • package:enough_media/enough_media.dart that imports:
  • package:chewie/chewie.dart that imports:
  • package:chewie/src/material/material_desktop_controls.dart that imports:
  • package:chewie/src/chewie_player.dart that imports:
  • package:wakelock/wakelock.dart that imports:
  • package:wakelock_macos/wakelock_macos.dart that declares support for platforms: macOS.

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:enough_media/enough_media.dart that imports:
  • package:chewie/chewie.dart that imports:
  • package:chewie/src/material/material_desktop_controls.dart that imports:
  • package:chewie/src/chewie_player.dart that imports:
  • package:wakelock/wakelock.dart that imports:
  • package:wakelock_macos/wakelock_macos.dart that declares support for platforms: macOS.
Package does not support platform `iOS`.

Because:

  • package:enough_media/enough_media.dart that imports:
  • package:chewie/chewie.dart that imports:
  • package:chewie/src/material/material_desktop_controls.dart that imports:
  • package:chewie/src/chewie_player.dart that imports:
  • package:wakelock/wakelock.dart that imports:
  • package:wakelock_macos/wakelock_macos.dart that declares support for platforms: macOS.

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:enough_media/enough_media.dart that imports:
  • package:chewie/chewie.dart that imports:
  • package:chewie/src/material/material_desktop_controls.dart that imports:
  • package:video_player/video_player.dart that imports:
  • dart:io

This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

partial
Pass static analysis
40 / 50trigger folding of the section

40/50 points: code has no errors, warnings, lints, or formatting issues

Found 4 issues. Showing the first 2:

INFO: 'VideoPlayerController.network' is deprecated and shouldn't be used. Use VideoPlayerController.networkUrl instead.

lib/interactive/video_interactive_media.dart:44:26

   ╷
44 │       _videoController = VideoPlayerController.network(provider.url);
   │                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

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

INFO: The import of 'package:enough_media/media_provider.dart' is unnecessary because all of the used elements are also provided by the import of 'package:enough_media/enough_media.dart'.

lib/interactive_media_widget.dart:2:8

  ╷
2 │ import 'package:enough_media/media_provider.dart';
  │        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

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

failed
Support up-to-date dependencies
30 / 40trigger folding of the section

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

Package Constraint Compatible Latest
chewie >=1.0.0 <3.0.0 1.5.0 1.8.5
flutter flutter 0.0.0 0.0.0
flutter_sound_lite >=8.0.0+2 <10.0.0 8.5.0 8.5.0
native_pdf_view >=4.0.0 <6.0.0 5.0.0 6.0.0+1
path_provider >=2.0.1 <4.0.0 2.0.15 2.1.5
photo_view >=0.11.1 <2.0.0 0.13.0 0.15.0
video_player >=2.0.0 <4.0.0 2.9.2 2.9.2
Transitive dependencies
Package Constraint Compatible Latest
archive - 3.6.1 3.6.1
characters - 1.3.0 1.3.1
collection - 1.18.0 1.19.1
crypto - 3.0.6 3.0.6
csslib - 1.0.2 1.0.2
cupertino_icons - 1.0.8 1.0.8
device_info_plus - 3.2.4 11.1.1
device_info_plus_linux - 2.1.1 5.0.0
device_info_plus_macos - 2.2.3 5.0.0
device_info_plus_platform_interface - 2.6.1 7.0.1
device_info_plus_web - 2.1.0 5.0.0
device_info_plus_windows - 2.1.1 6.0.0
extension - 0.2.0 0.6.0
ffi - 1.2.1 2.1.3
file - 6.1.4 7.0.1
flutter_sound_platform_interface - 8.5.0 9.17.0
flutter_sound_web - 8.5.0 9.17.0
flutter_web_plugins - 0.0.0 0.0.0
html - 0.15.5 0.15.5
image - 3.3.0 4.3.0
js - 0.6.7 0.7.1
logger - 1.4.0 2.5.0
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
native_pdf_renderer - 4.0.1 5.0.0+1
nested - 1.0.0 1.0.0
path - 1.9.1 1.9.1
path_provider_android - 2.2.12 2.2.12
path_provider_foundation - 2.4.0 2.4.0
path_provider_linux - 2.2.1 2.2.1
path_provider_platform_interface - 2.1.2 2.1.2
path_provider_windows - 2.0.7 2.3.0
petitparser - 6.0.2 6.0.2
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
provider - 6.1.2 6.1.2
recase - 4.1.0 4.1.0
sky_engine - 0.0.99 0.0.99
source_span - 1.10.0 1.10.0
synchronized - 3.3.0+3 3.3.0+3
term_glyph - 1.2.1 1.2.1
typed_data - 1.4.0 1.4.0
universal_platform - 1.1.0 1.1.0
uuid - 3.0.7 4.5.1
vector_math - 2.1.4 2.1.4
video_player_android - 2.7.16 2.7.16
video_player_avfoundation - 2.6.2 2.6.2
video_player_platform_interface - 6.2.3 6.2.3
video_player_web - 2.3.3 2.3.3
wakelock - 0.6.2 0.6.2
wakelock_macos - 0.4.0 0.4.0
wakelock_platform_interface - 0.3.0 0.3.0
wakelock_web - 0.4.0 0.4.0
wakelock_windows - 0.2.0 0.2.1
web - 1.1.0 1.1.0
win32 - 2.6.1 5.8.0
xdg_directories - 1.1.0 1.1.0
xml - 6.5.0 6.5.0

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

The constraint `>=4.0.0 <6.0.0` on native_pdf_view does not support the stable version `6.0.0`.

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

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

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.15, Flutter 3.24.4, Dart 3.5.4.

Check the analysis log for details.

9
likes
140
pub points
69%
popularity

Publisher

verified publisherenough.de

Extensible collection of media viewers for preview and interactive experiences.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MPL-2.0 (license)

Dependencies

chewie, flutter, flutter_sound_lite, native_pdf_view, path_provider, photo_view, video_player

More

Packages that depend on enough_media