diff --git a/lib/ui/viewer/file/file_details_widget.dart b/lib/ui/viewer/file/file_details_widget.dart index d7d168102..b8333cc39 100644 --- a/lib/ui/viewer/file/file_details_widget.dart +++ b/lib/ui/viewer/file/file_details_widget.dart @@ -50,7 +50,7 @@ class _FileDetailsWidgetState extends State { bool _isImage = false; late int _currentUserID; bool showExifListTile = false; - bool hasGPSData = false; + bool hasLocationData = false; @override void initState() { @@ -61,7 +61,7 @@ class _FileDetailsWidgetState extends State { _exifNotifier.addListener(() { if (_exifNotifier.value != null) { _generateExifForLocation(_exifNotifier.value!); - hasGPSData = _haGPSData(); + hasLocationData = _hasLocationData(); } }); if (_isImage) { @@ -142,7 +142,7 @@ class _FileDetailsWidgetState extends State { ValueListenableBuilder( valueListenable: _exifNotifier, builder: (context, _, __) { - return hasGPSData + return hasLocationData ? Column( children: [ LocationTagsWidget( @@ -231,7 +231,7 @@ class _FileDetailsWidgetState extends State { ); } - bool _haGPSData() { + bool _hasLocationData() { final fileLocation = widget.file.location; final hasLocation = (fileLocation != null && fileLocation.latitude != null &&