diff --git a/lib/src/widgets/toolbar/image_button.dart b/lib/src/widgets/toolbar/image_button.dart index 8b41d95c..029ad83e 100644 --- a/lib/src/widgets/toolbar/image_button.dart +++ b/lib/src/widgets/toolbar/image_button.dart @@ -78,7 +78,7 @@ class ImageButton extends StatelessWidget { Future _pickImage( ImageSource source, OnImagePickCallback onImagePickCallback) async { - final pickedFile = await ImagePicker().getImage(source: source); + final pickedFile = await ImagePicker().pickImage(source: source); if (pickedFile == null) { return null; } diff --git a/lib/src/widgets/toolbar/video_button.dart b/lib/src/widgets/toolbar/video_button.dart index f4c06f18..54f48a9c 100644 --- a/lib/src/widgets/toolbar/video_button.dart +++ b/lib/src/widgets/toolbar/video_button.dart @@ -78,7 +78,7 @@ class VideoButton extends StatelessWidget { Future _pickVideo( ImageSource source, OnVideoPickCallback onVideoPickCallback) async { - final pickedFile = await ImagePicker().getVideo(source: source); + final pickedFile = await ImagePicker().pickVideo(source: source); if (pickedFile == null) { return null; } diff --git a/pubspec.yaml b/pubspec.yaml index 36abb395..aae787c0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ dependencies: collection: ^1.15.0 flutter_colorpicker: ^0.4.0 flutter_keyboard_visibility: ^5.0.0 - image_picker: ^0.8.1+3 + image_picker: ^0.8.2 photo_view: ^0.11.1 quiver: ^3.0.0 string_validator: ^0.3.0