Skip to content

Commit

Permalink
Update background_locator.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
dmacan23 authored Jun 1, 2022
1 parent c7e696a commit ff20b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/background_locator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class BackgroundLocator {
AndroidSettings androidSettings = const AndroidSettings(),
IOSSettings iosSettings = const IOSSettings()}) async {
if (autoStop) {
WidgetsBinding.instance.addObserver(AutoStopHandler());
WidgetsBinding.instance?.addObserver(AutoStopHandler());
}

final args = SettingsUtil.getArgumentsMap(
Expand Down

0 comments on commit ff20b34

Please sign in to comment.