Skip to content

Fix Location Indicator not being shown#267

Closed
7h30n3 wants to merge 1 commit intomasterfrom
location_indicator_fix
Closed

Fix Location Indicator not being shown#267
7h30n3 wants to merge 1 commit intomasterfrom
location_indicator_fix

Conversation

@7h30n3
Copy link
Copy Markdown
Member

@7h30n3 7h30n3 commented Jun 28, 2024

In the current app version the so called Location Indicator does not get rendered, if the apps gets started for the first time or with no location permissions granted.

Debugging has revealed that due to const before AnimatedLocationLayer() in (former) line 135 in lib/screens/home.dart the corresponding didWidgetUpdate method is not being called. That is also the reason why the Location Indicator gets rendered after restarting the app, because the build function directly renders the Location Indicator and the not a temporary placeholder (which is "shown" as long as granting permission is pending or no permissions are granted at all).

Remove moving the const fixes the problem. Although this solution may not be clean due to a nagging linter. That's why there is also an ignore comment.

@7h30n3 7h30n3 closed this Jul 25, 2024
@7h30n3 7h30n3 deleted the location_indicator_fix branch August 2, 2024 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant