Rename method (#987)
This commit is contained in:
commit
08f25647ea
|
@ -50,7 +50,7 @@ class _FileDetailsWidgetState extends State<FileDetailsWidget> {
|
||||||
bool _isImage = false;
|
bool _isImage = false;
|
||||||
late int _currentUserID;
|
late int _currentUserID;
|
||||||
bool showExifListTile = false;
|
bool showExifListTile = false;
|
||||||
bool hasGPSData = false;
|
bool hasLocationData = false;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
|
@ -61,7 +61,7 @@ class _FileDetailsWidgetState extends State<FileDetailsWidget> {
|
||||||
_exifNotifier.addListener(() {
|
_exifNotifier.addListener(() {
|
||||||
if (_exifNotifier.value != null) {
|
if (_exifNotifier.value != null) {
|
||||||
_generateExifForLocation(_exifNotifier.value!);
|
_generateExifForLocation(_exifNotifier.value!);
|
||||||
hasGPSData = _haGPSData();
|
hasLocationData = _hasLocationData();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (_isImage) {
|
if (_isImage) {
|
||||||
|
@ -142,7 +142,7 @@ class _FileDetailsWidgetState extends State<FileDetailsWidget> {
|
||||||
ValueListenableBuilder(
|
ValueListenableBuilder(
|
||||||
valueListenable: _exifNotifier,
|
valueListenable: _exifNotifier,
|
||||||
builder: (context, _, __) {
|
builder: (context, _, __) {
|
||||||
return hasGPSData
|
return hasLocationData
|
||||||
? Column(
|
? Column(
|
||||||
children: [
|
children: [
|
||||||
LocationTagsWidget(
|
LocationTagsWidget(
|
||||||
|
@ -231,7 +231,7 @@ class _FileDetailsWidgetState extends State<FileDetailsWidget> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool _haGPSData() {
|
bool _hasLocationData() {
|
||||||
final fileLocation = widget.file.location;
|
final fileLocation = widget.file.location;
|
||||||
final hasLocation = (fileLocation != null &&
|
final hasLocation = (fileLocation != null &&
|
||||||
fileLocation.latitude != null &&
|
fileLocation.latitude != null &&
|
||||||
|
|
Loading…
Reference in a new issue