Custom filtering logic
This commit is contained in:
parent
00599d7b1e
commit
5226e4dd90
6 changed files with 136 additions and 12 deletions
|
|
@ -119,8 +119,7 @@ class _MainScreenState extends State<MainScreen> {
|
|||
FilledButton.tonal(
|
||||
onPressed: () async {
|
||||
try {
|
||||
await bg.BackgroundGeolocation.getCurrentPosition(samples: 1, persist: true);
|
||||
await bg.BackgroundGeolocation.sync();
|
||||
await bg.BackgroundGeolocation.getCurrentPosition(samples: 1, persist: true, extras: {'manual': true});
|
||||
} catch (error) {
|
||||
developer.log('Failed to fetch location', error: error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue