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

user location controller #2

Open
ajnaf opened this issue Mar 23, 2020 · 2 comments
Open

user location controller #2

ajnaf opened this issue Mar 23, 2020 · 2 comments

Comments

@ajnaf
Copy link

ajnaf commented Mar 23, 2020

error in get current location method
your has and request permission methods return PermissionStatus
but your saving it in a bool it doesnt work
also you have a problem with your ui overflowing pixels
nice app doing great

@zsk282
Copy link

zsk282 commented Apr 11, 2020

Update getCurrentLocation as per this beacause "location.hasPermission();" returns "PermissionStatus" not boolean

static Future<LatLng> getCurrentLocation() async {
    Location location = Location();
    PermissionStatus  check = await location.hasPermission();
    
    if (check == PermissionStatus.granted ) {
      LocationData position = await location.getLocation();
      return LatLng(position.latitude, position.longitude);
    }
    return null;
  }

@tilakpun
Copy link

Dear all, we have taxi booking app and have issue with very high Google API hit count and not able to login via FB and gmail. Any help on this will be of great help. I have joined github today so not sure where and how to connect for query resolution, so please excuse me if I am jumping in between. Please connect on Skype to support tilak-pun (not _)

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