fluttercommunity / fluttercommunity/flutter_google_places

Auto Complete widget not showing on release apk even with SHA1 registered

Open
#172 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
312
Forks
462
PR merge metrics
No merged PRs in 30d

Description

Hi Guys,

So i started using the auto complete widget and it's working well on debug,
i can search and select the location and it returns me the expected result,
but when i build the apk --release
and tried it on my phone,
the page just show me a blank screen,
both the search and maps are not showing
but when i run the debug version of apk on the same device
it works,
and if i comment the code for the autocomplete widget,
then the maps will also show just fine,
anyone have any idea what might be wrong?

i haven't uploaded the app to google console yet

(refer to screenshot below)

Expected Result on release:
![image](https://user-images.githubusercontent.com/49136926/132313098-fb551ec9-2429-490c-aef6-6028eea06456.png)

What actually happened:
![Screenshot_20210907-153315](https://user-images.githubusercontent.com/49136926/132313217-126512b8-d051-4ace-a9fa-587a4ec3c14c.jpg)

code from the app:
`Container(
color: Colors.transparent,
child: TextButton.icon(
onPressed: () async {
Prediction? p = await PlacesAutocomplete.show(
context: context,
apiKey: google_geocode_api,
mode: Mode.overlay,
offset: 0,
radius: 10000000,
strictbounds: false,
region: "sgp",
language: "en",
types: [],
components: [
new Component(Component.country, "sgp")
],
onError: (val) => print(val));
if(p != null) displayPrediction(p);
},
icon: Icon(Icons.search),
label: Text('Search', style: TextStyle(fontSize: 18))),
),`

setting on google api console:
![image](https://user-images.githubusercontent.com/49136926/132314068-10d0d8c2-8ec1-4d7a-8074-a1341e590518.png)

sha1 from signinReport for release:
![image](https://user-images.githubusercontent.com/49136926/132314618-48f69eb0-056c-465a-bf7e-8d611d99e089.png)

any help is appreciated, thanks guys

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.