{"id":18851017,"url":"https://github.com/teatalkinternal/mapbox_autocomplete_search_widget","last_synced_at":"2025-07-24T13:36:09.785Z","repository":{"id":56834403,"uuid":"351646756","full_name":"TeaTalkInternal/mapbox_autocomplete_search_widget","owner":"TeaTalkInternal","description":"MapboxAutocompleteSearchWidget is a flutter package that allows you to search for place name in a autocomplete fashion.","archived":false,"fork":false,"pushed_at":"2021-09-13T04:55:08.000Z","size":117,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T23:11:13.429Z","etag":null,"topics":["dart","flutter","hacktoberfest","hacktoberfest-accepted","hacktoberfest2022","open-source","package","pub-dev","pub-package","ui-components"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/mapbox_autocomplete_search_widget","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TeaTalkInternal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-26T03:10:27.000Z","updated_at":"2024-11-04T08:42:32.000Z","dependencies_parsed_at":"2022-09-09T18:00:20.202Z","dependency_job_id":null,"html_url":"https://github.com/TeaTalkInternal/mapbox_autocomplete_search_widget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeaTalkInternal%2Fmapbox_autocomplete_search_widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeaTalkInternal%2Fmapbox_autocomplete_search_widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeaTalkInternal%2Fmapbox_autocomplete_search_widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeaTalkInternal%2Fmapbox_autocomplete_search_widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TeaTalkInternal","download_url":"https://codeload.github.com/TeaTalkInternal/mapbox_autocomplete_search_widget/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248859657,"owners_count":21173337,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","hacktoberfest","hacktoberfest-accepted","hacktoberfest2022","open-source","package","pub-dev","pub-package","ui-components"],"created_at":"2024-11-08T03:33:10.074Z","updated_at":"2025-04-14T09:51:41.033Z","avatar_url":"https://github.com/TeaTalkInternal.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mapbox_autocomplete_search_widget\n\nLanguage: [English](README.md)\n\n- [mapbox_autocomplete_search_widget](#mapbox_autocomplete_search_widget)\n- [How to use it.](#how-to-use-it)\n- [parameters](#parameters)\n\n## mapbox_autocomplete_search_widget\nMapboxAutocompleteSearchWidget is a flutter package that allows you to search for place name in a autocomplete fashion. \n\nTechnical Notes:\nThe search is carried out only when search text length is greater than 2 and also a delay of 1 second is added before placing a server call. (Since user types continuously, unnessarry calls will be made to server. So we make the call with 1 second delay after user has stopped typing.)\n\nThe package uses Riverpod for state management. So Please ensure you import flutter_riverpod and wrap the app with ProviderScope.\n\n```dart\nimport 'package:flutter_riverpod/flutter_riverpod.dart';\n\n  runApp(\n    ProviderScope(\n      child: MyApp(),\n    ),\n  );\n```\n\nTo use this Package, Please get the Access-Token from here https://docs.mapbox.com/help/glossary/access-token/\n\nThe Package has necessarry attributions to Mapbox and can doesnot violate mapbox ![Terms and Conditions](https://www.mapbox.com/legal/tos/).\n\n![](https://github.com/TeaTalkInternal/github_assets/blob/master/gifs/place_autocomplete.gif)\n\n\n##  How to use it.\n\nthe usage is very simple, just use the following\n\n```dart\n  runApp(\n    ProviderScope(\n      child: MyApp(),\n    ),\n  );\n```\n\n```dart\n  MapboxAutocompleteSearchWidget(\n      onPlaceSelected: (BuildContext context, Place place) {\n        \n      },\n      mapboxApiKey: 'mapboxApiKey',\n    ),\n```\n\n## parameters\n\n| parameter                  | description                                                                           | value                                                                                                                                                                               |\n| -------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| onPlaceSelected                       | Completion Handler which returns a BuildContext and selected place from picker                                                                  |     (BuildContext context, Place place) {}                                                                                                                                                                              |\n| mapboxApiKey          | Your Mapbox ApiKey (Auth-Token)                                            | ApiKey Value                                                                                                                                                    |\n| appBarColor          | Color of App Bar widget                                           | This is a optional parameter                                                                                                                                                    |\n| backButtonColor          | Color of back arrow button                                            | This is a optional parameter                                                                                                                                                    |\n| infoButtonColor          | Color of mapbox info button                                            | This is a optional parameter                                                                                                                                                    |\n| clearButtonColor          | Color of clear button in Search widget                                            | This is a optional parameter                                                                                                                                                    |\n| cursorColor          | Color of cursor in Search widget                                            | This is a optional parameter                                                                                                                                                    |\n| searchTextColor          | Color of Text in Search widget                                            | This is a optional parameter                                                                                                                                                    |\n| searchBackgroundColor          | Color of Search area background                                            | This is a optional parameter                                                                                                                                                    |\n\n[git repo here](https://github.com/TeaTalkInternal/mapbox_autocomplete_search_widget)\n\nMade with ❤ and dedicated with respect to the Saviour  [Sonu Sood](https://twitter.com/SonuSood)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteatalkinternal%2Fmapbox_autocomplete_search_widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteatalkinternal%2Fmapbox_autocomplete_search_widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteatalkinternal%2Fmapbox_autocomplete_search_widget/lists"}