Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

named parameters isn't defined. please help #21

Closed
DavyDevelops opened this issue Nov 6, 2022 · 2 comments
Closed

named parameters isn't defined. please help #21

DavyDevelops opened this issue Nov 6, 2022 · 2 comments

Comments

@DavyDevelops
Copy link

lib/services/map_services.dart

The named parameter 'desiredAccuracy' isn't defined.at [107:15]

The named parameter 'timeLimit' isn't defined.at [108:15]

@nkosingaleka
Copy link

Fix:

const settings = LocationSettings(
accuracy: LocationAccuracy.best,
distanceFilter: 0,
);

  positionStream = Geolocator.getPositionStream(locationSettings: settings)
      .listen((position) async {
    eventFiring(currentPosition.value);

@DavyDevelops
Copy link
Author

Fix:

const settings = LocationSettings( accuracy: LocationAccuracy.best, distanceFilter: 0, );

  positionStream = Geolocator.getPositionStream(locationSettings: settings)
      .listen((position) async {
    eventFiring(currentPosition.value);

Fixed the problem thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants