We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b4bcd2 commit c8331f1Copy full SHA for c8331f1
mobile/lib/services/asset.service.dart
@@ -1,5 +1,4 @@
1
import 'dart:async';
2
-import 'dart:io';
3
4
import 'package:collection/collection.dart';
5
import 'package:flutter/material.dart';
@@ -389,10 +388,7 @@ class AssetService {
389
388
}
390
391
Future<double> getAspectRatio(Asset asset) async {
392
- // platform_manager always returns 0 for orientation on iOS, so only prefer it on Android
393
- if (asset.isLocal && Platform.isAndroid) {
394
- await asset.localAsync;
395
- } else if (asset.isRemote) {
+ if (asset.isRemote) {
396
asset = await loadExif(asset);
397
} else if (asset.isLocal) {
398
await asset.localAsync;
0 commit comments