|
@@ -266,7 +266,7 @@ class _ZoomableImageState extends State<ZoomableImage>
|
|
showToast(
|
|
showToast(
|
|
context,
|
|
context,
|
|
'Updating photo scale zooming and scale: ${_photoViewController.scale}',
|
|
'Updating photo scale zooming and scale: ${_photoViewController.scale}',
|
|
- );
|
|
|
|
|
|
+ ).ignore();
|
|
}
|
|
}
|
|
final prevImageInfo = await getImageInfo(previewImageProvider);
|
|
final prevImageInfo = await getImageInfo(previewImageProvider);
|
|
finalImageInfo = await getImageInfo(finalImageProvider);
|
|
finalImageInfo = await getImageInfo(finalImageProvider);
|
|
@@ -301,10 +301,12 @@ class _ZoomableImageState extends State<ZoomableImage>
|
|
) async {
|
|
) async {
|
|
final int h = imageInfo.image.height, w = imageInfo.image.width;
|
|
final int h = imageInfo.image.height, w = imageInfo.image.width;
|
|
if (h != enteFile.height || w != enteFile.width) {
|
|
if (h != enteFile.height || w != enteFile.width) {
|
|
- if (kDebugMode) {
|
|
|
|
- showToast(context, 'Updating aspect ratio');
|
|
|
|
|
|
+ final logMessage =
|
|
|
|
+ 'Updating aspect ratio for from ${enteFile.height}x${enteFile.width} to ${h}x$w';
|
|
|
|
+ if (kDebugMode && (enteFile.height != 0 || enteFile.width != 0)) {
|
|
|
|
+ showToast(context, logMessage).ignore();
|
|
}
|
|
}
|
|
- _logger.info('Updating aspect ratio for $enteFile to $h:$w');
|
|
|
|
|
|
+ _logger.info(logMessage);
|
|
await FileMagicService.instance.updatePublicMagicMetadata([
|
|
await FileMagicService.instance.updatePublicMagicMetadata([
|
|
enteFile,
|
|
enteFile,
|
|
], {
|
|
], {
|