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

Crash on 2nd open #3

Closed
festelo opened this issue Aug 5, 2019 · 4 comments
Closed

Crash on 2nd open #3

festelo opened this issue Aug 5, 2019 · 4 comments

Comments

@festelo
Copy link

festelo commented Aug 5, 2019

image

    final result = await Navigator.of(context).push(MaterialPageRoute(
      builder: (context) =>
        Theme(
          data: Theme.of(context).copyWith(
            accentColor: Colors.black
          ),
          child: PlacePicker(Api.googleKey),
        ) 
      )
    );
@blackmann
Copy link
Owner

@festelo did you finish up the android setup??

Also can you elaborate on your issue?? What does 2nd open mean; place picker screen open or the whole app open??

@festelo
Copy link
Author

festelo commented Aug 5, 2019

did you finish up the android setup??

  1. ACCESS_FINE_LOCATION setted
  2. com.google.android.geo.API_KEY setted
  3. gradle.properties updated

What does 2nd open mean; place picker screen open or the whole app open??

The code i sent executes when button has been pressed. On 1st button press PlacePicker successfully opens, but when i close PlacePicker and press the button again - the app crashes.

I found another library and maybe it's fork of yours, but this library works fine.
https://github.com/humazed/google_map_location_picker

I'll try to make codesample tomorrow

@blackmann
Copy link
Owner

It'll be great if i saw the code sample so I can help.

@blackmann
Copy link
Owner

Closing this issue for the sake of inactivity.

51v4 pushed a commit to 51v4/locationpicker that referenced this issue Jun 7, 2021
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

2 participants