From f57a60508326736d73d96929fb7636f5adde7121 Mon Sep 17 00:00:00 2001 From: Jacky Date: Sat, 19 Feb 2022 14:13:33 +0700 Subject: [PATCH] upgrade image_picker --- example/lib/main.dart | 2 +- example/pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index abd9ea70..ce118b26 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -81,7 +81,7 @@ class _MyHomePageState extends State { Future _pickImage() async { final pickedImage = - await ImagePicker().getImage(source: ImageSource.gallery); + await ImagePicker().pickImage(source: ImageSource.gallery); imageFile = pickedImage != null ? File(pickedImage.path) : null; if (imageFile != null) { setState(() { diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 8ac65ded..cd698673 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -17,7 +17,7 @@ dependencies: flutter: sdk: flutter - image_picker: ^0.8.4+8 + image_picker: ^0.8.4+9 # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons.