Bloc: Google places / Address autocomplete Bloc

Created on 24 Jun 2020  ยท  5Comments  ยท  Source: felangel/bloc

This is not a bug nor an issue..
I am trying to see if anyone has done a bloc pattern application for a Google maps autocomplete addresses or not.
I could not find any examples on the web.
If you any please let me know. That would help.

Thanks

example question waiting for response

Most helpful comment

Thanks @felangel ..
I can see a road map now .. I will try to post my solution as soon as I am
done with it.

Thanks again..

On Tue, Jun 23, 2020, 11:43 PM Felix Angelov notifications@github.com
wrote:

@edgebasis https://github.com/edgebasis I would recommend checking out
the github search example
https://github.com/felangel/bloc/tree/master/examples/github_search.
You can refer to the GithubSearchBloc
https://github.com/felangel/bloc/blob/master/examples/github_search/common_github_search/lib/src/github_search_bloc/github_search_bloc.dart
in particular. It should be fairly similar only instead of using the
GithubRepository
https://github.com/felangel/bloc/blob/master/examples/github_search/common_github_search/lib/src/github_repository.dart
you'd probably want a PlacesSearchRepository and instead of a GithubClient
https://github.com/felangel/bloc/blob/master/examples/github_search/common_github_search/lib/src/github_client.dart
you'd probably want a google_places_api_client.

Let me know if that helps ๐Ÿ‘

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/felangel/bloc/issues/1335#issuecomment-648564766, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AG6NZEG6VXRM773BFGII4WLRYFY6DANCNFSM4OGFJREQ
.

All 5 comments

Hi @edgebasis ๐Ÿ‘‹
Thanks for opening an issue!

I don't have any of my own examples but is there something in particular that you are having difficulty with? I'm happy to help if you have a specific question or sample app that isn't working properly ๐Ÿ‘

Hi @felangel
I dont have any specific code right now. I wanted to integrate the Google
Address Autocomplete api with my Flutter app and was wondering do I need
to use bloc since I am calling a google api to list the list of all
addresses while the use types in an address in. Any examples for calling
any google apis using a Flutter Bloc pattern might help me visualize an
architecture for this application.

Thanks

On Tue, Jun 23, 2020, 11:18 PM Felix Angelov notifications@github.com
wrote:

Hi @edgebasis https://github.com/edgebasis ๐Ÿ‘‹
Thanks for opening an issue!

I don't have any of my own examples but is there something in particular
that you are having difficulty with? I'm happy to help if you have a
specific question or sample app that isn't working properly ๐Ÿ‘

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/felangel/bloc/issues/1335#issuecomment-648558135, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AG6NZEBQDPW75GPPSHRLKDTRYFV7PANCNFSM4OGFJREQ
.

@edgebasis I would recommend checking out the github search example. You can refer to the GithubSearchBloc in particular. It should be fairly similar only instead of using the GithubRepository you'd probably want a AddressSearchRepository and instead of a GithubClient you'd probably want a google_autocomplete_api_client.

Let me know if that helps ๐Ÿ‘

Thanks @felangel ..
I can see a road map now .. I will try to post my solution as soon as I am
done with it.

Thanks again..

On Tue, Jun 23, 2020, 11:43 PM Felix Angelov notifications@github.com
wrote:

@edgebasis https://github.com/edgebasis I would recommend checking out
the github search example
https://github.com/felangel/bloc/tree/master/examples/github_search.
You can refer to the GithubSearchBloc
https://github.com/felangel/bloc/blob/master/examples/github_search/common_github_search/lib/src/github_search_bloc/github_search_bloc.dart
in particular. It should be fairly similar only instead of using the
GithubRepository
https://github.com/felangel/bloc/blob/master/examples/github_search/common_github_search/lib/src/github_repository.dart
you'd probably want a PlacesSearchRepository and instead of a GithubClient
https://github.com/felangel/bloc/blob/master/examples/github_search/common_github_search/lib/src/github_client.dart
you'd probably want a google_places_api_client.

Let me know if that helps ๐Ÿ‘

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/felangel/bloc/issues/1335#issuecomment-648564766, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AG6NZEG6VXRM773BFGII4WLRYFY6DANCNFSM4OGFJREQ
.

Awesome! Closing this for now but feel free to comment with additional questions and Iโ€™m happy to continue the conversation ๐Ÿ‘

Was this page helpful?
0 / 5 - 0 ratings

Related issues

craiglabenz picture craiglabenz  ยท  3Comments

nhwilly picture nhwilly  ยท  3Comments

MahdiPishguy picture MahdiPishguy  ยท  3Comments

krusek picture krusek  ยท  3Comments

clicksocial picture clicksocial  ยท  3Comments