Skip to content

Commit

Permalink
Merge pull request mdanics#53 from GustavoContreiras/patch-1
Browse files Browse the repository at this point in the history
Set maxWidth and maxHeight on pickImage()
  • Loading branch information
mdanics authored May 3, 2019
2 parents 1f78881 + 605fc27 commit b3c2901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/upload_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class _Uploader extends State<Uploader> {
onPressed: () async {
Navigator.pop(context);
File imageFile =
await ImagePicker.pickImage(source: ImageSource.camera);
await ImagePicker.pickImage(source: ImageSource.camera, maxWidth: 1920, maxHeight: 1350);
setState(() {
file = imageFile;
});
Expand Down

0 comments on commit b3c2901

Please sign in to comment.