Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto dismiss location warning popup #17

Merged
merged 1 commit into from
Oct 11, 2021

Conversation

Merlin1stHere
Copy link
Collaborator

Signed-off-by: Vitalii Khoruzhyi 44439675+Merlin1stHere@users.noreply.github.com

@@ -423,6 +428,10 @@ class _LandingScreenState extends State<LandingScreen> with Positioning {
);

Overlay.of(context)!.insert(_locationWarningOverlay!);
Timer.periodic(Duration(seconds: _kLocationWarningDismissPeriod), (timer) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that you want this to fire only once. In that case don't use Timer.periodic + cancel. Just use Timer(Duration(..)). It will fire once and you don't have to cancel it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Signed-off-by: Vitalii Khoruzhyi <44439675+Merlin1stHere@users.noreply.github.com>
@Merlin1stHere Merlin1stHere merged commit 313233a into master Oct 11, 2021
@Merlin1stHere Merlin1stHere deleted the auto_dismiss_location_warning branch October 11, 2021 08:47
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.

2 participants