ソースを参照

Used better method name

ashilkn 2 年 前
コミット
92b85d7f98

+ 2 - 2
lib/services/location_service.dart

@@ -140,7 +140,7 @@ class LocationService {
       final name = newName ?? locationTagEntity.item.name;
 
       final locationTag = locationTagEntity.item;
-      //Break if there is no change in locationTag's properties
+      //Exit if there is no change in locationTag's properties
       if (radius == locationTag.radius &&
           centerPoint == locationTag.centerPoint &&
           name == locationTag.name) {
@@ -201,7 +201,7 @@ class GPSData {
 
   GPSData(this.latRef, this.lat, this.longRef, this.long);
 
-  Location toLocationFormat() {
+  Location toLocationObj() {
     final latSign = latRef == "N" ? 1 : -1;
     final longSign = longRef == "E" ? 1 : -1;
     return Location(

+ 1 - 1
lib/ui/viewer/file/file_details_widget.dart

@@ -152,7 +152,7 @@ class _FileDetailsWidgetState extends State<FileDetailsWidget> {
                           _exifData["lat"],
                           _exifData["longRef"],
                           _exifData["long"],
-                        ).toLocationFormat(),
+                        ).toLocationObj(),
                       ),
                       const FileDetailsDivider(),
                     ],