WeatherMaster icon indicating copy to clipboard operation
WeatherMaster copied to clipboard

"Use device compass" is glitched (Flutter)

Open Andepthy opened this issue 1 year ago • 3 comments

Describe your issue

When the setting "Use device compass" is on, and when my phone points to the south. The wind arrow rotates 360°. See the screen recording below.

Steps to reproduce

  1. Make sure the "Use device compass" setting is on.
  2. Move your phone to point to the south. (Current wind direction don't affect this issue.)

What was the expected result?

Don't be like that.

Which weather source are you using?

Any

Put here any screenshots or videos (optional)

I'm slowly rotating my phone:

https://github.com/user-attachments/assets/44eb895c-1a4d-48c3-9c98-9eb24d10f311

Acknowledgements

  • [x] I have reviewed the existing issues to confirm that this is a unique report and not related to any currently open or closed tickets.
  • [x] I understand that this app is provided as-is, without any guarantees, and I might not receive a response to my request. Sometimes you might not get the response you want.

Andepthy avatar Jul 14 '25 16:07 Andepthy

@Andypsl8 Yeah, that rotation reset is because it hits 0°, Android’s compass API does that. Can’t really fix it, since after a full 360° it just snaps back to 0 to start over

PranshulGG avatar Jul 14 '25 16:07 PranshulGG

@PranshulGG I see. But the compass app on my phone doesn't seem to have that behavior. Are they different?

Andepthy avatar Jul 14 '25 16:07 Andepthy

@PranshulGG I see. But the compass app on my phone doesn't seem to have that behavior. Are they different?

@Andypsl8 Yeah, the compass app shows the direction you’re facing, while the wind compass shows where the wind’s coming from, like south to north. Since the device rotation resets after 360°, it goes back to 0. It’s not a bug, that’s just how it works

PranshulGG avatar Jul 14 '25 16:07 PranshulGG