Skip to content

Commit

Permalink
upgrade image_picker
Browse files Browse the repository at this point in the history
  • Loading branch information
hnvn committed Feb 19, 2022
1 parent aed4834 commit f57a605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class _MyHomePageState extends State<MyHomePage> {

Future<Null> _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(() {
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f57a605

Please sign in to comment.