{"id":32269667,"url":"https://github.com/benjamin-otto/animated_flight_paths","last_synced_at":"2026-02-19T21:48:42.675Z","repository":{"id":167710344,"uuid":"643043120","full_name":"benjamin-otto/animated_flight_paths","owner":"benjamin-otto","description":"A Flutter package which provides a widget for easily adding flight path animations to a map.","archived":false,"fork":false,"pushed_at":"2023-06-01T22:11:26.000Z","size":3838,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-22T23:38:01.318Z","etag":null,"topics":["flutter","flutterpackage"],"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/benjamin-otto.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":"2023-05-20T00:17:33.000Z","updated_at":"2023-05-20T21:48:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc237dd9-6047-4c43-935b-45a75ffa5b55","html_url":"https://github.com/benjamin-otto/animated_flight_paths","commit_stats":null,"previous_names":["benjamin-otto/animated_flight_paths"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/benjamin-otto/animated_flight_paths","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamin-otto%2Fanimated_flight_paths","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamin-otto%2Fanimated_flight_paths/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamin-otto%2Fanimated_flight_paths/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamin-otto%2Fanimated_flight_paths/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benjamin-otto","download_url":"https://codeload.github.com/benjamin-otto/animated_flight_paths/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamin-otto%2Fanimated_flight_paths/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29634409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T18:02:07.722Z","status":"ssl_error","status_checked_at":"2026-02-19T18:01:46.144Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["flutter","flutterpackage"],"created_at":"2025-10-22T22:28:24.858Z","updated_at":"2026-02-19T21:48:42.670Z","avatar_url":"https://github.com/benjamin-otto.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://flutter.dev\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Platform-Flutter-02569B?logo=flutter\"\n      alt=\"Platform\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pub.dartlang.org/packages/animated_flight_paths\"\u003e\n    \u003cimg src=\"https://img.shields.io/pub/v/animated_flight_paths\" alt=\"Animated Flight Paths Pub Package\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/benjamin-otto/animated_flight_paths?label=license\" alt=\"License\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp\u003e  \n    \u003cimg src=\"https://github.com/benjamin-otto/animated_flight_paths/blob/main/screenshots/animated_flight_paths.png?raw=true\" alt=\"Animated Flight Paths\" width=\"100%\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\nA widget for adding animated flight paths to a map.\n\u003c/p\u003e\n\n## Features\n\n- Includes Mercator and Robinson world map projections.\n  - Or set any custom map or other background you choose.\n- Several options for customizing the flight paths including colors and animation curves.\n- Easily determine a point on the map using the `debugShowOffsetOnTap` then tapping or clicking.\n\n## Quick Start\n\n```dart\nimport 'package:animated_flight_paths/animated_flight_paths.dart';\n\nclass AnimatedFlightPathsExample extends StatefulWidget {\n  const AnimatedFlightPathsExample({super.key});\n\n  @override\n  State\u003cAnimatedFlightPathsExample\u003e createState() =\u003e\n      _AnimatedFlightPathsExampleState();\n}\n\nclass _AnimatedFlightPathsExampleState extends State\u003cAnimatedFlightPathsExample\u003e\n    with SingleTickerProviderStateMixin {\n  \n  // Controls the flight path animations\n  late AnimationController controller;\n\n  @override\n  void initState() {\n    super.initState();\n    controller = AnimationController(\n      vsync: this,\n      duration: const Duration(seconds: 10),\n    )..repeat();\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return AnimatedFlightPaths(\n      controller: controller,\n      flightSchedule: FlightSchedule(\n        // All flights must depart on or after [start] of schedule.\n        start: DateTime.parse('2023-01-01 00:00:00'), \n        // All flights must arrive on or before [end] of schedule.\n        end: DateTime.parse('2023-01-02 23:59:00'),\n        flights: flights,\n      )\n    );\n  }\n\n  @override\n  void dispose() {\n    controller.dispose();\n    super.dispose();\n  }\n}\n```\n\n[Create flight endpoints:](#determining-flight-endpoint-offsets)\n```dart\nabstract class Cities {\n  static final newYork = FlightEndpoint(\n    offset: const Offset(28, 51),\n    label: const Text('New York'),\n  );\n\n  static final bangkok = FlightEndpoint(\n    offset: const Offset(75, 65),\n    label: const Text('Bangkok'),\n  );\n}\n```\n\nCreate the flights to be animated:\n```dart\nfinal flights = \u003cFlight\u003e[\n  Flight(\n    from: Cities.newYork,\n    to: Cities.bangkok,\n    departureTime: DateTime.parse('2023-01-01 00:00:00'),\n    arrivalTime: DateTime.parse('2023-01-01 19:30:00'),\n  ),\n  Flight(\n    from: Cities.bangkok,\n    to: Cities.newYork,\n    departureTime: DateTime.parse('2023-01-02 00:00:00'),\n    arrivalTime: DateTime.parse('2023-01-02 19:30:00'),\n  ),\n];\n```\n\n\u003cp\u003e  \n    \u003cimg src=\"https://github.com/benjamin-otto/animated_flight_paths/blob/main/screenshots/animated_flight_paths.gif?raw=true\" alt=\"Animated Flight Paths\" width=\"100%\"/\u003e\n\u003c/p\u003e\n\n## Determining Flight Endpoint Offsets\n\n\u003cp\u003e  \n    \u003cimg src=\"https://github.com/benjamin-otto/animated_flight_paths/blob/main/screenshots/map_coordinates.png?raw=true\" alt=\"Map Coordinates\" width=\"100%\"/\u003e\n\u003c/p\u003e\n\nEasily determine coordinates with `debugShowOffsetOnTap`.\n\n```dart\nAnimatedFlightPaths(\n  controller: controller,\n  debugShowOffsetOnTap: true, // Set to true\n  flightSchedule: FlightSchedule(\n      start: DateTime.parse('2023-01-01 00:00:00'),\n      end: DateTime.parse('2023-01-01 23:59:00'),\n      flights: \u003cFlight\u003e[],\n  ),\n);\n```\n\nWith `debugShowOffsetOnTap: true`  run the app and tap/click anywhere to display a 📍  and a tooltip with the coordinates of that position.\n\nFine-tune the 📍 position with the arrow keys [↑ ↓ → ←].\n\nIn the screenshot above the tooltip is showing **(21.99, 52.79)** which are the coordinates of **Kansas City**.\n\nWith those coordinates we can then create a new `FlightEndpoint`:\n\n```dart\nabstract class Cities {\n  static final kansasCity = FlightEndpoint(\n    offset: const Offset(21.99, 52.79),\n    label: const Text('Kansas City'),\n  );\n}\n```\n\nNow use this endpoint in any of your flights.\n\n✈️ Bon Voyage!!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjamin-otto%2Fanimated_flight_paths","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjamin-otto%2Fanimated_flight_paths","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjamin-otto%2Fanimated_flight_paths/lists"}