diff --git a/.flutter-plugins b/.flutter-plugins index cd94d11..733fa3f 100644 --- a/.flutter-plugins +++ b/.flutter-plugins @@ -1,22 +1,22 @@ # This is a generated file; do not edit or check into version control. -file_picker=/Users/joey/.pub-cache/hosted/pub.dev/file_picker-5.3.0/ -flutter_plugin_android_lifecycle=/Users/joey/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.14/ -flutter_sound=/Users/joey/.pub-cache/hosted/pub.dev/flutter_sound-9.2.13/ -flutter_sound_web=/Users/joey/.pub-cache/hosted/pub.dev/flutter_sound_web-9.2.13/ -image_picker=/Users/joey/.pub-cache/hosted/pub.dev/image_picker-0.8.7+5/ -image_picker_android=/Users/joey/.pub-cache/hosted/pub.dev/image_picker_android-0.8.6+13/ -image_picker_for_web=/Users/joey/.pub-cache/hosted/pub.dev/image_picker_for_web-2.1.12/ -image_picker_ios=/Users/joey/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.7+4/ -path_provider=/Users/joey/.pub-cache/hosted/pub.dev/path_provider-2.0.15/ -path_provider_android=/Users/joey/.pub-cache/hosted/pub.dev/path_provider_android-2.0.27/ -path_provider_foundation=/Users/joey/.pub-cache/hosted/pub.dev/path_provider_foundation-2.2.3/ -path_provider_linux=/Users/joey/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.10/ -path_provider_windows=/Users/joey/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.6/ -permission_handler=/Users/joey/.pub-cache/hosted/pub.dev/permission_handler-10.2.0/ -permission_handler_android=/Users/joey/.pub-cache/hosted/pub.dev/permission_handler_android-10.2.0/ -permission_handler_apple=/Users/joey/.pub-cache/hosted/pub.dev/permission_handler_apple-9.0.8/ -permission_handler_windows=/Users/joey/.pub-cache/hosted/pub.dev/permission_handler_windows-0.1.2/ -video_player=/Users/joey/.pub-cache/hosted/pub.dev/video_player-2.6.1/ -video_player_android=/Users/joey/.pub-cache/hosted/pub.dev/video_player_android-2.4.7/ -video_player_avfoundation=/Users/joey/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.4.6/ -video_player_web=/Users/joey/.pub-cache/hosted/pub.dev/video_player_web-2.0.16/ +file_picker=/Users/Bram/.pub-cache/hosted/pub.dev/file_picker-5.3.0/ +flutter_plugin_android_lifecycle=/Users/Bram/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.15/ +flutter_sound=/Users/Bram/.pub-cache/hosted/pub.dev/flutter_sound-9.2.13/ +flutter_sound_web=/Users/Bram/.pub-cache/hosted/pub.dev/flutter_sound_web-9.2.13/ +image_picker=/Users/Bram/.pub-cache/hosted/pub.dev/image_picker-0.8.7+5/ +image_picker_android=/Users/Bram/.pub-cache/hosted/pub.dev/image_picker_android-0.8.6+15/ +image_picker_for_web=/Users/Bram/.pub-cache/hosted/pub.dev/image_picker_for_web-2.1.12/ +image_picker_ios=/Users/Bram/.pub-cache/hosted/pub.dev/image_picker_ios-0.8.7+4/ +path_provider=/Users/Bram/.pub-cache/hosted/pub.dev/path_provider-2.0.15/ +path_provider_android=/Users/Bram/.pub-cache/hosted/pub.dev/path_provider_android-2.0.27/ +path_provider_foundation=/Users/Bram/.pub-cache/hosted/pub.dev/path_provider_foundation-2.2.3/ +path_provider_linux=/Users/Bram/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.10/ +path_provider_windows=/Users/Bram/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.6/ +permission_handler=/Users/Bram/.pub-cache/hosted/pub.dev/permission_handler-10.2.0/ +permission_handler_android=/Users/Bram/.pub-cache/hosted/pub.dev/permission_handler_android-10.2.1/ +permission_handler_apple=/Users/Bram/.pub-cache/hosted/pub.dev/permission_handler_apple-9.0.8/ +permission_handler_windows=/Users/Bram/.pub-cache/hosted/pub.dev/permission_handler_windows-0.1.2/ +video_player=/Users/Bram/.pub-cache/hosted/pub.dev/video_player-2.6.1/ +video_player_android=/Users/Bram/.pub-cache/hosted/pub.dev/video_player_android-2.4.8/ +video_player_avfoundation=/Users/Bram/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.4.6/ +video_player_web=/Users/Bram/.pub-cache/hosted/pub.dev/video_player_web-2.0.16/ diff --git a/CHANGELOG.md b/CHANGELOG.md index ba31763..3225c74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ +## 0.6.1 + +- Gave disabledPickers a default value to stop null errors. + ## 0.6.0 -- Made compatible with flutter 3.10 + +- Made compatible with flutter 3.10 ## 0.5.0 diff --git a/example/pubspec.lock b/example/pubspec.lock index 4116e8c..7bcd660 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -147,7 +147,7 @@ packages: path: ".." relative: true source: path - version: "0.6.0" + version: "0.6.1" flutter_plugin_android_lifecycle: dependency: transitive description: diff --git a/lib/src/media_picker.dart b/lib/src/media_picker.dart index c5c4e35..4503f6e 100644 --- a/lib/src/media_picker.dart +++ b/lib/src/media_picker.dart @@ -109,7 +109,7 @@ class MediaPicker extends StatefulWidget { this.horizontalSpacing = 0, this.verticalSpacing = 0, this.loadingIconColor, - this.disabledPickers, + this.disabledPickers = const [], Key? key, }) : super(key: key); diff --git a/pubspec.yaml b/pubspec.yaml index b61a9b8..f4d93cd 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_media_picker description: A new Flutter package project. -version: 0.6.0 +version: 0.6.1 homepage: https://github.com/Iconica-Development/flutter_media_picker publish_to: "none"