Update status screen

This commit is contained in:
Anton Tananaev 2025-05-09 07:56:34 -07:00
parent 5394f0f2e7
commit 61ce0a0653
4 changed files with 21 additions and 22 deletions

View file

@ -80,8 +80,8 @@ class _MainScreenState extends State<MainScreen> {
FilledButton.tonal(
onPressed: () async {
try {
await bg.BackgroundGeolocation.getCurrentPosition(samples: 1);
await bg.BackgroundGeolocation.sync();
await bg.BackgroundGeolocation.getCurrentPosition(samples: 1);
await bg.BackgroundGeolocation.sync();
} catch (error) {
developer.log('Failed to fetch location', error: error);
}