Upgrade image picker

pull/307/head
Xin Yao 4 years ago
parent 109701948c
commit c7d71f7f46
  1. 2
      lib/src/widgets/toolbar/image_button.dart
  2. 2
      lib/src/widgets/toolbar/video_button.dart
  3. 2
      pubspec.yaml

@ -78,7 +78,7 @@ class ImageButton extends StatelessWidget {
Future<String?> _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;
}

@ -78,7 +78,7 @@ class VideoButton extends StatelessWidget {
Future<String?> _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;
}

@ -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

Loading…
Cancel
Save