{"id":18327309,"url":"https://github.com/ahm3tcelik/city_picker_from_map","last_synced_at":"2025-04-06T01:32:05.014Z","repository":{"id":56827050,"uuid":"349972049","full_name":"ahm3tcelik/city_picker_from_map","owner":"ahm3tcelik","description":"A flutter package for select a city from svg map.","archived":false,"fork":false,"pushed_at":"2021-03-23T21:55:24.000Z","size":3961,"stargazers_count":53,"open_issues_count":1,"forks_count":24,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T14:47:45.019Z","etag":null,"topics":["dart","flutter","flutter-maps","flutter-svg","flutter-widget"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/city_picker_from_map","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/ahm3tcelik.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-21T11:02:28.000Z","updated_at":"2024-11-22T21:27:07.000Z","dependencies_parsed_at":"2022-09-20T22:55:00.814Z","dependency_job_id":null,"html_url":"https://github.com/ahm3tcelik/city_picker_from_map","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahm3tcelik%2Fcity_picker_from_map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahm3tcelik%2Fcity_picker_from_map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahm3tcelik%2Fcity_picker_from_map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahm3tcelik%2Fcity_picker_from_map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahm3tcelik","download_url":"https://codeload.github.com/ahm3tcelik/city_picker_from_map/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423473,"owners_count":20936621,"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","flutter-maps","flutter-svg","flutter-widget"],"created_at":"2024-11-05T19:10:28.535Z","updated_at":"2025-04-06T01:32:00.002Z","avatar_url":"https://github.com/ahm3tcelik.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# City Picker From Map \n\nA flutter package for select a city from svg map.\n\n![](https://github.com/ahm3tcelik/city_picker_from_map/blob/master/showcase/selecting_city.gif)\n\nSupported countries (+150) are [here](https://github.com/ahm3tcelik/city_picker_from_map/blob/master/lib/src/maps.dart).\n\n## Screenshots\n![](https://github.com/ahm3tcelik/city_picker_from_map/blob/master/showcase/responsive.gif)\n\n\n![](https://github.com/ahm3tcelik/city_picker_from_map/blob/master/showcase/ss3.jpg)\n![](https://github.com/ahm3tcelik/city_picker_from_map/blob/master/showcase/ss4.png)\n\n## Getting Started\n\nIn the `pubspec.yaml` of your **Flutter** project, add the following dependency:\n\n```yaml\ndependencies:\n  ...\n  city_picker_from_map: any\n```\n\nIn your library file add the following import:\n\n```dart\nimport 'package:city_picker_from_map/city_picker_from_map.dart';\n```\n\n## Usage\n\n```dart\nCityPickerMap(\n\twidth: double.infinity,\n\theight: double.infinity,\n\tmap: Maps.TURKEY,\n\tonChanged: (city) {\n\t  setState(() {\n\t\tselectedCity = city;\n\t  });\n\t},\n\tactAsToggle: true,\n\tdotColor: Colors.white,\n\tselectedColor: Colors.lightBlueAccent,\n\tstrokeColor: Colors.white24,\n)\n```\n## Props\n| props                   | types           | description                                                                                                     |\n| :---------------------- | :-------------: | :---------------------------------------------------------------------------------------------------------------: |\n| key        | `Key?`        |  |\n| map       | `String`     | Name of the map you want to show. Use as Maps.\u003cMAP_NAME\u003e All maps are in the [maps.dart](https://github.com/ahm3tcelik/city_picker_from_map/blob/master/lib/src/maps.dart)  |\n| width           | `double?`     | Map width. Default value is double.infinity |\n| height       | `double?`     | Map height. Default value is double.infinity |\n| dotColor | `Color?`         | Color of the dot in the center of the city  |\n| strokeColor       | `Color?`     | Color of the city borders |\n| selectedColor       | `Color?`     | Color of the selected city |\n| actAsToggle | `boolean?`         | City selecting act as like toggle button |\n| onChanged       | `Function(City? city)`     | Returns new city value when it changed |\n\nAuthor\n------\n\n* [Ahmet ÇELİK](https://github.com/ahm3tcelik/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahm3tcelik%2Fcity_picker_from_map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahm3tcelik%2Fcity_picker_from_map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahm3tcelik%2Fcity_picker_from_map/lists"}