Removed the size limit when picking an image

This commit is contained in:
Mariano Uvalle 2019-04-28 18:43:28 -05:00
parent e05f5bc093
commit 735a99c9b0
2 changed files with 2 additions and 3 deletions

View file

@ -158,14 +158,13 @@ class _NewImageScreenState extends State<NewImageScreen> {
Navigator.of(context).pop();
}
// TODO: Pro users can save their pictures in full res.
// TODO: Add size limit for free users.
/// Prompts the user to take a picture.
///
/// Updates the file in the bloc.
Future<void> takePicture() async {
final File imgFile = await ImagePicker.pickImage(
source: ImageSource.camera,
maxWidth: 1500,
);
bloc.changePicture(imgFile);
}