Fixed a bug where all the thumnails where the same as the first one in the firebase function
This commit is contained in:
parent
f438df4432
commit
2b6ef23ab9
3 changed files with 11 additions and 4 deletions
|
|
@ -34,7 +34,7 @@ class FirebaseStorageProvider {
|
|||
_storage.child('$folder$fileId.$type');
|
||||
return fileReference.putFile(
|
||||
file,
|
||||
StorageMetadata(contentType: 'image'),
|
||||
StorageMetadata(contentType: 'image/png'),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -140,12 +140,14 @@ class _NewImageScreenState extends State<NewImageScreen> {
|
|||
Navigator.of(context).pop();
|
||||
}
|
||||
|
||||
// TODO: Pro users can save their pictures in full res.
|
||||
/// 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue