{"id":32269168,"url":"https://github.com/tughra/turkiye-regional-map-flutter-widget","last_synced_at":"2026-02-23T17:01:27.858Z","repository":{"id":262276805,"uuid":"886750041","full_name":"Tughra/Turkiye-Regional-Map-Flutter-Widget","owner":"Tughra","description":"A Flutter widget that helps you select and mark geographic regions of Turkey.","archived":false,"fork":false,"pushed_at":"2024-11-12T12:22:06.000Z","size":7169,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-15T12:53:39.476Z","etag":null,"topics":["maps","pulse","regional","turkey-map"],"latest_commit_sha":null,"homepage":"","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/Tughra.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-11T14:35:47.000Z","updated_at":"2025-12-01T08:40:08.000Z","dependencies_parsed_at":"2024-11-11T15:50:06.398Z","dependency_job_id":null,"html_url":"https://github.com/Tughra/Turkiye-Regional-Map-Flutter-Widget","commit_stats":null,"previous_names":["tughra/turkiye-regional-map-flutter-widget"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tughra/Turkiye-Regional-Map-Flutter-Widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tughra%2FTurkiye-Regional-Map-Flutter-Widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tughra%2FTurkiye-Regional-Map-Flutter-Widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tughra%2FTurkiye-Regional-Map-Flutter-Widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tughra%2FTurkiye-Regional-Map-Flutter-Widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tughra","download_url":"https://codeload.github.com/Tughra/Turkiye-Regional-Map-Flutter-Widget/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tughra%2FTurkiye-Regional-Map-Flutter-Widget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29748786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["maps","pulse","regional","turkey-map"],"created_at":"2025-10-22T22:22:05.296Z","updated_at":"2026-02-23T17:01:27.845Z","avatar_url":"https://github.com/Tughra.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\nThis README describes the package. If you publish this package to pub.dev,\nthis README's contents appear on the landing page for your package.\n\nFor information about how to write a good package README, see the guide for\n[writing package pages](https://dart.dev/tools/pub/writing-package-pages).\n\nFor general information about developing packages, see the Dart guide for\n[creating packages](https://dart.dev/guides/libraries/create-packages)\nand the Flutter guide for\n[developing packages and plugins](https://flutter.dev/to/develop-packages).\n--\u003e\n# 🇹🇷 Turkiye Regional Map Flutter Widget\n\nA widget that helps you select and mark geographic regions of Turkey.\n\u003cdiv style=\"display:flex; justify-content: center;\"\u003e\n\u003cimg src=\"https://github.com/Tughra/Turkiye-Regional-Map-Flutter-Widget/raw/master/example/screenshots/map_gif.gif\" width=\"300\"/\u003e\n\u003c/div\u003e\n\n## 💻 Installation\n\nIn the dependencies: section of your pubspec.yaml, add the following line:\n\n```yaml\ndependencies:\n  turkiye_regional_map: \u003clatest version\u003e\n```\nTo use the latest changes:\n\n```yaml\n  turkiye_regional_map:\n    git:\n      url: https://github.com/Tughra/Turkiye-Regional-Map-Flutter-Widget.git\n      ref: master\n```\n\n## ❔ Usage\n\nImport this class\n\n```dart\nimport 'package:turkiye_regional_map/turkiye_regional_map.dart';\n```\n\n### If you want to pulse animation when you select a region;\n##### \u003cfont color=\"orange\"\u003e If you want to use the ```turkeyRegionModel``` parameter, you need to create the ```TurkeyRegionModel``` model outside of the ```TurkeyRegionalMap``` widget. Do not put the object directly into the parameter. \u003c/font\u003e\n```dart\nfinal regionModelPulse = TurkeyRegionModel(\n    showIstanbulEuropeRegion: false,\n    showIstanbulAnatoliaRegion: false,\n    selectedWidthFactor: 3.4,\n    selectedRegion: TurkeyRegionType.blackSea);\n ```    \n```dart\nTurkeyRegionalMap.withPulseAnimation(\nmapWidth: MediaQuery.sizeOf(context).width,\nselectable: true,\npulseMaxRadius: 200,\nturkeyRegionModel: regionModelPulse,)\n ```\n### If you dont want to pulse animation when you select a region use this;\n\n```dart\nfinal regionModelWithoutPulse = TurkeyRegionModel(\n    showIstanbulEuropeRegion: true,\n    mediterraneanColor: Colors.teal[100],\n    easternAnatoliaColor: Colors.teal[200],\n    southeasternAnatoliaColor: Colors.teal[300],\n    centralAnatoliaColor: Colors.teal[400],\n    blackSeaColor: Colors.teal[500],\n    egeColor: Colors.teal[600],\n    selectedRegionColor: Colors.teal,\n    marmaraColor: Colors.teal[700],\n    showIstanbulAnatoliaRegion: true,\n    borderColor: Colors.white,\n    selectedBorderColor: Colors.black,\n    selectedWidthFactor: 3.4,\n    selectedRegion: TurkeyRegionType.blackSea);\n ```   \n```dart\nTurkeyRegionalMap.onlyMap(\nmapWidth: MediaQuery.sizeOf(context).width,\nselectable: true,\nturkeyRegionModel: regionModelWithoutPulse,)\n ``` \nIf you want to select Istanbul's europe or anatolia region you need to set ```true ``` ```showIstanbulAnatoliaRegion``` or ```showIstanbulEuropeRegion``` inside of ```TurkeyRegionModel```.\nIf you do not want to initial selected region set ```selectedRegion:null``` inside of ```TurkeyRegionModel```.\n\n```OnSelectRegionCallBack``` is a callback that contains hit exact position, selected region type and center position of selected region. \n```dart\nTurkeyRegionalMap.withPulseAnimation(\nmapWidth: MediaQuery.sizeOf(context).width,\nselectable: true,\nselectedRegionCallback: (TurkeyRegionType type, Offset hitOffset, Offset centerRegion) {\n  print(type);\n  print(\"hitOffset $hitOffset\");\n  print(\"centerRegion $centerRegion\");\n},)\n```  \n### Full Example\n``` dart\nclass MyHomePage extends StatefulWidget {\n\n\n  const MyHomePage({super.key, required this.title});\n\n  final String title;\n\n  @override\n  State\u003cMyHomePage\u003e createState() =\u003e _MyHomePageState();\n}\n\nclass _MyHomePageState extends State\u003cMyHomePage\u003e {\n  final regionModelPulse = TurkeyRegionModel(\n      showIstanbulEuropeRegion: false,\n      showIstanbulAnatoliaRegion: false,\n      selectedWidthFactor: 3.4,\n      selectedRegion: TurkeyRegionType.blackSea);\n  final regionModelWithoutPulse = TurkeyRegionModel(\n      showIstanbulEuropeRegion: true,\n      mediterraneanColor: Colors.teal[100],\n      easternAnatoliaColor: Colors.teal[200],\n      southeasternAnatoliaColor: Colors.teal[300],\n      centralAnatoliaColor: Colors.teal[400],\n      blackSeaColor: Colors.teal[500],\n      egeColor: Colors.teal[600],\n      selectedRegionColor: Colors.teal,\n      marmaraColor: Colors.teal[700],\n      showIstanbulAnatoliaRegion: true,\n      borderColor: Colors.white,\n      selectedBorderColor: Colors.black,\n      selectedWidthFactor: 3.4,\n      selectedRegion: TurkeyRegionType.blackSea);\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      appBar: AppBar(\n        backgroundColor: Colors.red.shade800,\n        title: Text(\"Turkiye Regional Map\",style: TextStyle(color: Colors.white),),\n      ),\n      body: ListView(\n        children: \u003cWidget\u003e[\n          Center(child: Text(regionModelPulse.selectedRegion?.name??\"\",style: TextStyle(fontSize: 24),)),\n          ColoredBox(color: Colors.blue.shade700,\n            child: TurkeyRegionalMap.withPulseAnimation(\n              mapWidth: MediaQuery.sizeOf(context).width,\n              selectable: true,\n              selectedRegionCallback: (TurkeyRegionType type, Offset hitOffset, Offset centerRegion) {\n                print(type);\n                print(\"hitOffset $hitOffset\");\n                print(\"centerRegion $centerRegion\");\n                setState(() {});\n              },\n              pulseColor: Colors.white,\n              pulseMaxRadius: 200,\n              turkeyRegionModel:regionModelPulse ,\n            ),\n          ),\n          TurkeyRegionalMap.onlyMap(\n            mapWidth: MediaQuery.sizeOf(context).width,\n            selectable: true,\n            turkeyRegionModel:regionModelWithoutPulse ,\n          ),\n        ],\n      ), // This trailing comma makes auto-formatting nicer for build methods.\n    );\n  }\n}\n``` \n## 🐛 Bugs/Requests\n\nIf you encounter any problems feel free to open an issue. If you feel the library is\nmissing a feature, please raise a ticket on Github and I'll look into it.\nPull request are also welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftughra%2Fturkiye-regional-map-flutter-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftughra%2Fturkiye-regional-map-flutter-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftughra%2Fturkiye-regional-map-flutter-widget/lists"}