Auto Complete widget not showing on release apk even with SHA1 registered
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- mobile-dev
Research direction
Start from the PlacesAutocomplete.show call and compare the debug and release APK configuration, including the release SHA1 registered in the Google API console. Build and run the release APK on the same device, capture the onError output and relevant logs, and verify that both the autocomplete search and map render successfully in the release build.
Written by the indexing model from the issue text.
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:

What actually happened:

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:

sha1 from signinReport for release:

any help is appreciated, thanks guys
- Dominant language
- Dart
- Stars
- 311
- Forks
- 458
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fluttercommunity/flutter_google_places
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
-
Difficulty 1/5 Under an hour Newbie friendliness 35/100
fluttercommunity/flutter_google_places#231 · 4 comments · 4 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
fluttercommunity/flutter_google_places#230 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
fluttercommunity/flutter_google_places#225 · 5 comments · 4 reactions ·
All issues in fluttercommunity/flutter_google_places
Similar issues
-
Standalone dash flashes as its own RSVP step (e.g. Russian dialogue)Possibly taken @bezig01 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
daniel-pimenta-cc/ledor#53 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Iteration CounterOpenenhancement firebase
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
brysonddelozier/scribbles#24 ·
-
bug good first issue P2-Medium
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
basictech01/uniun#305 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
daohoangson/flutter_widget_from_html#1657 ·
Maintainers usually reply within 3 days