audio_service 0.18.4 icon indicating copy to clipboard operation
audio_service: ^0.18.4 copied to clipboard

Flutter plugin to play audio in the background while the screen is off.

764
likes
120/ 130
pub points
97%
popularity

We analyzed this package 17 hours ago, and awarded it 120 pub points (of a possible 130):

icon indicating section status
Follow Dart file conventions
20 / 20icon to trigger 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

icon indicating section status
Provide documentation
20 / 20icon to trigger folding of the section

10/10 points: Package has an example

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

  • 455 out of 471 API elements (96.6 %) have documentation comments.
icon indicating section status
Platform support
20 / 20icon to trigger folding of the section

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

  • ✓ Android
  • ✓ iOS
  • ✓ MacOS
  • ✓ Web

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:audio_service/audio_service.dart that declares support for platforms: Android, iOS, macOS, Web.
Package does not support platform `Linux`.

Because:

  • package:audio_service/audio_service.dart that declares support for platforms: Android, iOS, macOS, Web.

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

Package does not support platform `Web`.

Because:

  • package:audio_service/audio_service.dart that imports:
  • package:flutter_cache_manager/flutter_cache_manager.dart that imports:
  • package:flutter_cache_manager/src/storage/cache_info_repositories/cache_info_repositories.dart that imports:
  • package:flutter_cache_manager/src/storage/cache_info_repositories/json_cache_info_repository.dart that imports:
  • package:path_provider/path_provider.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.
icon indicating section status
Pass static analysis
20 / 30icon to trigger folding of the section

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 16 issues. Showing the first 2:

INFO: Close instances of `dart.core.Sink`.

lib/audio_service.dart:1889:40

     ╷
1889 │   final BehaviorSubject<PlaybackState> _playbackState = BehaviorSubject();
     │                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     ╵

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

INFO: Close instances of `dart.core.Sink`.

lib/audio_service.dart:1890:42

     ╷
1890 │   final BehaviorSubject<List<MediaItem>> _queue = BehaviorSubject();
     │                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^
     ╵

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

icon indicating section status
Support up-to-date dependencies
20 / 20icon to trigger folding of the section

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

PackageConstraintCompatibleLatest
audio_service_platform_interface^0.1.00.1.00.1.0
audio_service_web^0.1.10.1.10.1.1
audio_session^0.1.6+10.1.6+10.1.6+1
clock^1.1.01.1.01.1.0
flutterflutter0.0.00.0.0
flutter_cache_manager^3.0.13.3.03.3.0
flutter_web_pluginsflutter0.0.00.0.0
js^0.6.30.6.40.6.4
rxdart>=0.26.0 <0.28.00.27.30.27.3
Transitive dependencies
PackageConstraintCompatibleLatest
async-2.9.02.9.0
characters-1.2.01.2.1
charcode-1.3.11.3.1
collection-1.16.01.16.0
crypto-3.0.23.0.2
ffi-1.2.11.2.1
file-6.1.26.1.2
http-0.13.40.13.4
http_parser-4.0.04.0.0
material_color_utilities-0.1.40.1.5
meta-1.7.01.7.0
path-1.8.11.8.1
path_provider-2.0.102.0.10
path_provider_android-2.0.142.0.14
path_provider_ios-2.0.92.0.9
path_provider_linux-2.1.62.1.6
path_provider_macos-2.0.62.0.6
path_provider_platform_interface-2.0.42.0.4
path_provider_windows-2.0.62.0.6
pedantic-1.11.11.11.1
platform-3.1.03.1.0
plugin_platform_interface-2.1.22.1.2
process-4.2.44.2.4
sky_engine-0.0.990.0.99
source_span-1.9.01.9.0
sqflite-2.0.2+12.0.2+1
sqflite_common-2.2.1+12.2.1+1
string_scanner-1.1.11.1.1
synchronized-3.0.0+23.0.0+2
term_glyph-1.2.01.2.0
typed_data-1.3.11.3.1
uuid-3.0.63.0.6
vector_math-2.1.22.1.2
win32-2.6.12.6.1
xdg_directories-0.2.0+10.2.0+1

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

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

icon indicating section status
Support sound null safety
20 / 20icon to trigger folding of the section

20/20 points: Package and dependencies are fully migrated to null safety!

Analysed with Pana 0.21.12, Flutter 3.0.0, Dart 2.17.0.