on_audio_query
Flutter Plugin used to query audios/songs infos [title, artist, album, etc..] from device storage.
2.9.0
5.2K downloads/mo
#3790 most downloaded on pub.dev
LucJosin/on_audio_query
What this package is like to depend on
Last release 3 years ago
no release in 18 months
Ships unpredictably
gaps range from 9 days to 9 months
Nearly every release is documented
notes for 35 of 35 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
40 releases · first in 2021
0 releases in the last 12 months
see the full history below
Release timeline
40 releases · Mar 2021 to May 2023Releases
latest 40-
3.0.0-beta.020 Jun 2022 pre-release -
2.9.015 May 2023 -
2.8.126 Apr 2023Release notes
Open source →Fixes
- Fixed broken pubspec links. - #115
iOS
- Fixed wrong name of podspec in iOS. - #116
Changes
- Updated dart-analyzer to support cache
- Updated README
-
2.8.013 Apr 2023Release notes
Open source →Features
- Added
showDetailedLog.
Changes
- Moved
androidandiosinto separated folders. - Replaced
/detailswith/src.
⚠ Important Changes
Android
- Updated kotlin version from
1.4.32to1.6.10. - #110 - Updated kotlin coroutines version from
1.5.2-native-mtto1.6.4.
- Added
-
2.7.029 Mar 2023Release notes
Open source →Features
- Added
[LogType]. - Added
[LogConfig]. - Added
[PermissionController](Native) - Added
[PluginProvider](Native) - Added
[setLogConfig]method. - Added
[checkAndRequest]method. - Added
[controller]to[QueryArtworkWidget]. - Added
[retryRequest]param to[checkAndRequest]and[permissionsRequest].
Fixes
Android
- Fixed crash after request permission. - #68
- Fixed quality always being sent as
200using[queryArtwork].
Changes
- Updated example.
- Renamed natives files/folders.
- Reduced the default
artworkresolution (from 100 to 50). - Updated
[QueryArtworkWidget]params. - Updated quality assert on
[QueryArtworkWidget].
⚠ Important Changes
- Updated application permission check.
- If application doesn't have permission to access the library, will throw a PlatformException.
- Updated
qualityparam from[QueryArtworkWidget].- This param cannot be defined as null anymore and, by default, will be set to
50.
- This param cannot be defined as null anymore and, by default, will be set to
- Updated minimum supported Dart version.
- Increase minimum version from
2.12to2.17.
- Increase minimum version from
Release notes
Open source →Features
- Added
[LogType]. - Added
[LogConfig]. - Added
[PermissionController](Native) - Added
[PluginProvider](Native) - Added
[setLogConfig]method. - Added
[checkAndRequest]method. - Added
[controller]to[QueryArtworkWidget]. - Added
[retryRequest]param to[checkAndRequest]and[permissionsRequest].
Fixes
Android
- Fixed crash after request permission. - #68
- Fixed quality always being sent as
200using[queryArtwork].
Changes
- Updated example.
- Renamed natives files/folders.
- Reduced the default
artworkresolution (from 100 to 50). - Updated
[QueryArtworkWidget]params. - Updated quality assert on
[QueryArtworkWidget].
⚠ Important Changes
- Updated application permission check.
- If application doesn't have permission to access the library, will throw a PlatformException.
- Updated
qualityparam from[QueryArtworkWidget].- This param cannot be defined as null anymore and, by default, will be set to
50.
- This param cannot be defined as null anymore and, by default, will be set to
- Updated minimum supported Dart version.
- Increase minimum version from
2.12to2.17.
- Increase minimum version from
- Added
-
2.6.204 Mar 2023Release notes
Open source →[2.6.2] - [03.03.2023]
Fixes
Android
- [Fixed] incompatibility with
Android 13. - #91 - Thanks @ruchit-7span
Release notes
Open source → - [Fixed] incompatibility with
-
2.6.117 May 2022 -
2.6.001 Feb 2022Release notes
Open source →Features
- [Added]
[scanMedia]method that will scan the given path and update the[Android]MediaStore.
Fixes
- [Fixed] media showing when calling
[querySongs]even after deleting with[dart:io]. - #67
Changes
- [Updated] some required packages.
Documentation
- Updated
READMEdocumentation. - Updated
DEPRECATEDdocumentation. - Updated
PLATFORMSdocumentation. - Updated some
brokenlinks.
Release notes
Open source →Features
- Added
[scanMedia]method that will scan the given path and update the[Android]MediaStore.
Fixes
- Fixed media showing when calling
[querySongs]even after deleting with[dart:io]. - #67
Changes
- Updated some required packages.
Documentation
- Updated
READMEdocumentation. - Updated
DEPRECATEDdocumentation. - Updated
PLATFORMSdocumentation. - Updated some
brokenlinks.
- [Added]
-
2.5.310 Nov 2021Release notes
Open source →Fixes
IOS
- Fixed song/artist/album from
Apple Musicreturning when 'querying' - #61 - Fixed wrong
artistIdreturning from[AlbumModel]- #60
Documentation
- Updated
READMEdocumentation.
- Fixed song/artist/album from
-
2.5.3+120 Jan 2022 -
2.5.225 Oct 2021Release notes
Open source →Fixes
Android
- Fixed wrong value returning from: - #56
[is_music].[is_alarm].[is_notification].[is_ringtone].[is_podcast].[is_audiobook].
Documentation
- Updated
READMEdocumentation.
- Fixed wrong value returning from: - #56
-
2.5.119 Oct 2021Release notes
Open source →Fixes
Dart
- Fixed wrong value returning from
[artistId]when using[AlbumModel]. - #54
Android
- Fixed missing songs from
[queryAudiosFrom]when usingGENRE. - #46
Documentation
- Updated
READMEdocumentation.
⚠ Important Changes
Dart
- Now
[artistId]from[AlbumModel]return a[int].
- Fixed wrong value returning from
-
2.5.016 Oct 2021Release notes
Open source →Release
[2.5.0]release.
Features
Dart
- Added
errorBuilderandframeBuilderto[QueryArtworkWidget].
Fixes
Web
- Fixed empty result when using
[querySongs]. - Fixed error when decoding some images.
See all development changes:
-
2.5.0-alpha.015 Oct 2021 pre-releaseRelease notes
Open source →Features
All platforms
- Added
artworkto genres. - #41 - Added
sortType,orderTypeandignoreCaseto[queryAudiosFrom].
Android
- Re-Added
pathparameter to[querySongs]. - #48
Web
- Added
pathparameter to[querySongs].
Fixes
Android
- Fixed empty
Uint8Listwhen using[queryArtwork]on Android 7. - #47 - Fixed null
albumIdwhen using Android 9 or below. - #53
Documentation
- Updated
READMEdocumentation. New[queryAudiosFrom]section. - Updated
DEPRECATEDdocumentation.
Changes
- Downgraded
KotlinandGradleversion. - #51
⚠ Important Changes
@Deprecated
[albumId]from[AlbumModel].- Use
[id]instead.
- Use
- Added
-
2.4.201 Oct 2021Release notes
Open source →Fixes
IOS
- Fixed no artwork returning from
[queryArtwork]when usingArtworkType.ALBUM. - #45
Documentation
- Updated
READMEdocumentation.
- Fixed no artwork returning from
-
2.4.129 Sep 2021Release notes
Open source →Fixes
Dart
- Fixed wrong type of
numOfSongsfrom[SongModel]. - #39
IOS
- Fixed wrong filter configuration when using
[queryWithFilters]. - Fixed crash when using any
'query'method with a nullsortType. - #43 - Fixed error with wrong
[MPMediaQuery]filter. - #38
Documentation
- Updated
READMEdocumentation.
- Fixed wrong type of
-
2.4.028 Sep 2021Release notes
Open source →Features
Android
- Added a better 'search' method to
[queryWithFilters], now the query uses 'contains' when 'querying'. - #35
Fixes
IOS
- Fixed error with wrong
[MPMediaQuery]type and wrong value from[jpegData]. - #37
Documentation
- Updated broken
READMElinks. - #36
Documentation
- Updated
READMEdocumentation.
- Added a better 'search' method to
-
2.3.127 Sep 2021Release notes
Open source →Features
Android/Web
- Added
[ignoreCase]to:[querySongs].[queryAlbums].[queryArtists].[queryPlaylists].[queryGenres].
Fixes
Android
- Fixed
errorwhen trying to build usingAndroid. - #32 & #33 - Fixed
errorrelated to android song projection. - #31 - Fixed
'bug'when usingSongSortType.TITLE. This is now a'feature'and can be controlled using[ignoreCase]. - #29
Documentation
- Updated
READMEdocumentation.
Changes
Android
- Updated
[Kotlin]and[Dependencies]versions. - Moved from
[JCenter]to[MavenCentral].
- Added
-
2.3.025 Sep 2021Release notes
Open source →Features
Android/IOS/Web
- Added
[numOfSongs]to[PlaylistModel]and[GenreModel]. - Added
PlaylistandArtisttoArtworkType.
Android/IOS
- Added
qualitytoqueryArtwork.
Android
- Added
[isAudioBook],[Genre]and[GenreId]to[SongModel]. - Re-Added to
[SongModel]:[isAlarm].[isMusic].[isNotification].[isPodcast].[isRingtone].
Fixes
Android
- Fixed wrong value returning from
[id]when using[ArtistModel]. - Fixed wrong value returning from
[id]when using[GenreModel]. - Fixed no value returning from
[queryAudiosFrom]when usingARTIST_ID.
Documentation
- Updated
READMEdocumentation. - Updated
OnAudioQueryandOnAudioQueryExampledocumentation to support new[Flutter 2.5].
Changes
- [Changed] wrong name
DATA_ADDEDtoDATE_ADDEDfor both[SongSortType]and[PlaylistSortType]. - #27
⚠ Important Changes
Dart
- The parameter
argsfrom[queryWithFilters]is no longer required.
@Deprecated
[DEFAULT]from[SongSortType].[DEFAULT]from[PlaylistSortType].[DEFAULT]from[ArtistSortType].[DEFAULT]from[AlbumSortType].[DEFAULT]from[GenreSortType].[ARTIST_KEY]from[ArtistSortType].[ARTIST_NAME]from[ArtistSortType].[ALBUM_NAME]from[AlbumSortType].[GENRE_NAME]from[GenreSortType].[DATA_ADDED]from[SongSortType].[DATA_ADDED]from[PlaylistSortType].
<!-- Deleted files: [audios_only_type.dart] and [songs_by_type.dart] --> <!-- Changed files: [queryArtworkWidget.dart] to [query_artwork_widget.dart] -->
- Added
-
2.2.025 Aug 2021Release notes
Open source →Features
IOS
- Added a
filterto avoid cloud audios/songs.
Fixes
IOS
- Fixed wrong value returning from
[permissionsStatus]. - #24
Documentation
- Updated
READMEdocumentation.
- Added a
-
2.1.224 Aug 2021Release notes
Open source →Fixes
Android
- Fixed duplicate
mediafrom[queryWithFilters]. - Fixed
crashwhen calling[queryWithFilters]. - #23 - Fixed
nullartwork returning from[queryArtwork]on Android 11/R. - #21
Documentation
- Updated
READMEdocumentation. - Updated
pubspecdocumentation.
- Fixed duplicate
-
2.1.124 Aug 2021Release notes
Open source →Fixes
Android
- Fixed error when using
[removeFromPlaylist]. - #22
Documentation
- Updated
READMEdocumentation. - Updated
[OnAudioQueryExample]to support[Web]platform.
- Fixed error when using
-
2.1.023 Aug 2021Release notes
Open source →Features
on_audio_query
- The plugin now supports
[Web]. - The plugin now utilize
[Platform interface]package.
Web
- Added:
[querySongs].[queryAlbums].[queryArtists].[queryGenres].[queryAudiosFrom].[queryWithFilters].[queryArtwork].[queryDeviceInfo].
Documentation
- Updated
on_audio_querydocumentation. - Updated
READMEdocumentation. - Updated
PLATFORMSdocumentation. - Added documentation to
Webplatform.
- The plugin now supports
-
2.0.017 Aug 2021 -
2.0.0-beta.215 Aug 2021 pre-releaseRelease notes
Open source →Features
IOS
- Now ALL methods will only
"query"if has permission toLibrary. - Added
[addToPlaylist].
Dart
- Added
[author]and[desc]arguments to[createPlaylist]. (IOS only)
Fixes
IOS
- Fixed crash when using
[queryArtwork]. - Fixed wrong
[id]value returning from[PlaylistModel].
Documentation
- Updated
READMEdocumentation.
- Now ALL methods will only
-
2.0.0-beta.114 Aug 2021 pre-releaseRelease notes
Open source →Features
IOS
- Added
[queryArtwork].
Fixes
Android
- Fixed
errorwhen building to[Android].
IOS
- Fixed wrong
[duration],[dateAdded]and[bookmark]values returning from[SongModel].
Documentation
- Updated
on_audio_querydocumentation. - Updated
READMEdocumentation. - Updated
DEPRECATEDdocumentation. - Added documentation to
IOSplatform.
⚠ Important Changes
@Deprecated
[artwork]from[QueryArtworkWidget].[deviceSDK]from[QueryArtworkWidget].[requestPermission]from[QueryArtworkWidget].
- Added
-
2.0.0-beta.013 Aug 2021 pre-releaseRelease notes
Open source →Features
on_audio_query
- Added a
DART ANALYZERtoPULL_REQUESTandPUSH.
Documentation
- Updated
on_audio_querydocumentation. - Updated
READMEdocumentation. - Updated
DEPRECATEDdocumentation. - Created
PLATFORMSfile.
⚠ Important Changes
Dart
- Now ALL methods has
Named Optionalarguments. - Changed
[queryArtworks]to[queryArtwork].
@Deprecated
[requestPermission]argument from ALL methods.[queryAudios].[artwork]from[SongModel].[path]from[querySongs].
- Added a
-
1.2.030 Jul 2021Release notes
Open source →Features
- Added
[path]parameter to[querySongs]and[queryAudio]. - Added
[getMap]to:[SongModel].[AlbumModel].[ArtistModel].[GenreModel].[PlaylistModel].[DeviceModel].
Documentation
- Updated
READMEdocumentation.
- Added
-
1.1.319 Jul 2021Release notes
Open source →Fixes
Android
- Fixed
[cursor]problem when using[AudiosFromType.GENRE_NAME]or[AudiosFromType.GENRE_ID]on[queryAudiosFrom]. - #16 and #12
Documentation
- Updated
READMEdocumentation.
Changes
Android
- Updated some
[Kotlin]dependencies.
- Fixed
-
1.1.3+119 Jul 2021Release notes
Open source →Fixes
Android
- Fixed
[Kotlin]issue when installing the plugin.
Documentation
- Updated
READMEdocumentation.
Changes
Android
- Downgraded some
[Kotlin]dependencies.
- Fixed
-
1.1.207 Jul 2021Release notes
Open source →Fixes
Android
Fixed[cursor]problem when using[AudiosFromType.GENRE_NAME]or[AudiosFromType.GENRE_ID]on[queryAudiosFrom].
Documentation
- Updated
READMEdocumentation.
-
1.1.124 Jun 2021Release notes
Open source →Features
Dart/Android
- Added
[uri]to[SongModel]. - Added #10
Fixes
Android
- Fixed
java.lang.Integer cannot be cast to java.lang.Longfrom[queryArtworks]. - #11
Documentation
- Updated
READMEdocumentation. - Created
DEPRECATEDfile/history.
Changes
Dart
- Changed from
[deviceInfo]to[deviceSDK]on[QueryArtworkWidget].
⚠ Important Changes
Dart
- Deprecated
[deviceInfo]from[QueryArtworkWidget].
- Added
-
1.1.003 Jun 2021Release notes
Open source →Features
Dart/Android
- Added
[queryDeviceInfo]. - Added
[dateModified]to[SongModel]. - Added
[querySongsBy]and[SongsByType].
Fixes
Android
- Fixed incompatibility with
[permission_handler]. - #3 - Thanks @mvanbeusekom
Dart
- Fixed wrong name. From
[dataAdded]to[dateAdded].
Documentation
- Updated
READMEdocumentation. - Updated
[OnAudioQueryExample]to add new[queryDeviceInfo]and[QueryArtworkWidget]methods.
Changes
Android
- Updated some
[Kotlin]dependencies. - Changed some
[Kotlin]methods.
⚠ Important Changes
Dart
- Now
[getDeviceSDK],[getDeviceRelease]and[getDeviceCode]are part of[queryDeviceInfo]. - Now
[QueryArtworkWidget]support Android above and below 29/Q/10. - Now
[size],[albumId],[artistId],[dataAdded],[dataModified],[duration],[track]and[year]from[SongModel]will return[int].
- Added
-
1.0.819 May 2021Release notes
Open source →Features
Dart
- Added
[artworkClipBehavior],[keepOldArtwork],[repeat]and[scale]to[QueryArtworkWidget]. - Added comments to
[QueryArtworkWidget].
Fixes
Android
- Fixed Now
[queryArtworks]will return null. - #6
Documentation
- Updated
READMEdocumentation.
⚠ Important Changes
Dart
- Now
[queryArtworks]return[Uint8List?].
- Added
-
1.0.718 May 2021Release notes
Open source →Features
Dart/Android
- Added
[queryFromFolder]. - Added
[queryAllPath]. - Added
[_display_name_wo_ext]([displayName]without extension) to[SongModel]. - Added #5 - Added
[file_extension](Only file extension) to[SongModel]. - Added
[file_parent](All the path before file) to[SongModel]. - Added
[Genre]to[queryAudiosFrom]. - Added
[ALBUM_ID],[ARTIST_ID]and[PLAYLIST_ID]to[AudiosFromType]. - Added #2
Documentation
- Updated
READMEdocumentation.
Changes
Dart/Android
- Now
[queryAudiosFrom]supports[name]and[id]. - Now
[albumId]from[AlbumModel]return a[int].
Android
- Now all
[Kotlin]checks will throw a[Exception]if value don't exist. - Updated some
[Kotlin]dependencies.
⚠ Important Changes
Dart/Android
- Changed
[ALBUM],[ARTIST]and[PLAYLIST]to[ALBUM_NAME],[ARTIST_NAME]and[PLAYLIST_NAME]in[AudiosFromType].
- Added
-
1.0.608 Apr 2021Release notes
Open source →Fixes
Android
- Fixed
[queryArtwork]returning null album image in Android 11. - #1
Documentation
- Updated
READMEdocumentation.
Changes
Android
- Removed unnecessary code from
[WithFiltersType]. - Updated some
[Kotlin]dependencies.
- Fixed
-
1.0.531 Mar 2021Release notes
Open source →Features
Dart/Android
- Added
[queryAudiosOnly]. - Added
[queryWithFilters]. - Added
[AudiosOnlyType]and[WithFiltersType]. - Added
[SongsArgs],[AlbumsArgs],[PlaylistsArgs],[ArtistsArgs],[GenresArgs]. - Added
[EXTERNAL]and[INTERNAL]parameters for some query methods.
Documentation
- Updated
READMEdocumentation.
Changes
Dart/Android
- Now
[querySongs],[queryAlbums],[queryArtists],[queryPlaylists]and[queryGenres]have[UriType]as parameter.
Android
- Updated some
[Kotlin]dependencies.
- Added
-
1.0.328 Mar 2021 -
1.0.227 Mar 2021Release notes
Open source →Fixes
Dart
- Fixed flutter example.
Android
- Fixed
[audiosFromPlaylist][Now this method is part of queryAudiosFrom] - Fixed
"count(*)"error from[addToPlaylist]. [Permission bug on Android 10 still happening]
Documentation
- Updated
READMEdocumentation.
Changes
Dart
- Now
[Id]in models return[int]instead[String].
⚠ Important Changes
Dart/Android
- Removed
[ALBUM_KEY],[ARTIST_KEY]from all query audio methods.
Android
- Moved
[audiosFromPlaylist]to[queryAudiosFrom].
-
1.0.024 Mar 2021