Update status screen
This commit is contained in:
parent
5394f0f2e7
commit
61ce0a0653
4 changed files with 21 additions and 22 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue