{"id":13552378,"url":"https://github.com/gauris26/flutter_animarker","last_synced_at":"2026-02-22T00:02:50.519Z","repository":{"id":49218792,"uuid":"280307092","full_name":"gauris26/flutter_animarker","owner":"gauris26","description":"Sometimes you need more than place a marker in the maps, you required a smoothly through Google Maps canvas.","archived":false,"fork":false,"pushed_at":"2024-01-18T05:22:27.000Z","size":48617,"stargazers_count":58,"open_issues_count":38,"forks_count":52,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-03T03:33:07.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gaurisjavier.com/","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gauris26.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":"2020-07-17T02:28:13.000Z","updated_at":"2024-10-02T20:33:11.000Z","dependencies_parsed_at":"2024-01-14T16:10:49.320Z","dependency_job_id":"b882dc3a-764b-49ff-b9af-565c67001f88","html_url":"https://github.com/gauris26/flutter_animarker","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/gauris26/flutter_animarker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauris26%2Fflutter_animarker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauris26%2Fflutter_animarker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauris26%2Fflutter_animarker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauris26%2Fflutter_animarker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gauris26","download_url":"https://codeload.github.com/gauris26/flutter_animarker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauris26%2Fflutter_animarker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29699340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T23:35:04.139Z","status":"ssl_error","status_checked_at":"2026-02-21T23:35:03.832Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-08-01T12:02:03.076Z","updated_at":"2026-02-22T00:02:50.484Z","avatar_url":"https://github.com/gauris26.png","language":"Dart","funding_links":["https://www.buymeacoffee.com/gauris"],"categories":["Dart"],"sub_categories":[],"readme":"# Google Maps Marker Animation - Overview\n\n\u003ca href=\"https://www.buymeacoffee.com/gauris\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" width=\"195\" height=\"55\"\u003e\u003c/a\u003e\n\n\u003ca href=\"https://pub.dev/packages/flutter_animarker\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/pub-3.2.0-blue\" alt=\"pub package\"/\u003e\n\u003c/a\u003e\n\nSometimes you need more than place a *Marker*📍 at map canvas 🌍, you need to smoothly move through **Google Maps**.\n\nThis package will help you to animate *Markers*' position changes and more.\n\nThis version v3.0.0 includes many useful features, namely:\n\n - Marker's position animation\n - Multiple markers' animations at the same time\n - Null-safety compatible\n - Ripple effect over marker position\n - Marker's rotation or bearing/heading of direction\n - Multipoint linear animation (*Piecewise Linear Approximation Algorithm*)\n - Support animation curves and duration\n - Widget-based with fully customized behaviors\n - Animation warm-up for improving performance\n - Useful **LocationTween**, **AngleTween** and **PolynomialLocationInterpolator** core logic\n\n### Note\nThis package only animate the marker's changes. Both Geolocation and Google Maps configuration are out of the scope of this package. So, before trying this package to ensure that you place a marker you Google Map or get location updates.\n\n\n## Screenshots\n\n\u003cimg src=\"https://raw.githubusercontent.com/gauris26/flutter_animarker/d61ac4f420f030f4e002fa287282628d901cff26/arts/marker_animation.gif\" width=\"300\"/\u003e \u003cimg src=\"https://raw.githubusercontent.com/gauris26/flutter_animarker/d61ac4f420f030f4e002fa287282628d901cff26/arts/multi_markers.gif\" width=\"300\"/\u003e\n\n## Example\n\n```dart\n  Animarker(\n    ...\n    curve: Curves.bounceInOut,\n    duration: Duration(milliseconds: 2000),\n    markers: \u003cMarker\u003e {\n      RippleMarker(\n        markerId: MarkerId('MarkerId2'),\n        position: LatLng(0, 0),\n        ripple: true,\n      ),\n    },\n    child: GoogleMap(\n      ...\n      onMapCreated: (gController) =\u003e controller.complete(gController), //Complete the future GoogleMapController\n      ...\n    ),\n    ...\n  )\n```\n\n```dart\n    //Setting dummies values\n    const kStartPosition = LatLng(18.488213, -69.959186);\n    const kSantoDomingo = CameraPosition(target: kStartPosition, zoom: 15);\n    const kMarkerId = MarkerId('MarkerId1');\n    const kDuration = Duration(seconds: 2);\n    const kLocations = [\n      kStartPosition,\n      LatLng(18.488101, -69.957995),\n      LatLng(18.489210, -69.952459),\n      LatLng(18.487307, -69.952759)\n    ];\n\n    class SimpleMarkerAnimationExample extends StatefulWidget {\n      @override\n      SimpleMarkerAnimationExampleState createState() =\u003e SimpleMarkerAnimationExampleState();\n    }\n\n    class SimpleMarkerAnimationExampleState extends State\u003cSimpleMarkerAnimationExample\u003e {\n      final markers = \u003cMarkerId, Marker\u003e{};\n      final controller = Completer\u003cGoogleMapController\u003e();\n      final stream = Stream.periodic(kDuration, (count) =\u003e kLocations[count]).take(kLocations.length);\n\n      @override\n      void initState() {\n        stream.forEach((value) =\u003e newLocationUpdate(value));\n\n        super.initState();\n      }\n\n      @override\n      Widget build(BuildContext context) {\n        return MaterialApp(\n          title: 'Google Maps Markers Animation Example',\n          home: Animarker(\n            curve: Curves.ease,\n            mapId: controller.future.then\u003cint\u003e((value) =\u003e value.mapId), //Grab Google Map Id\n            markers: markers.values.toSet(),\n            child: GoogleMap(\n              mapType: MapType.normal,\n              initialCameraPosition: kSantoDomingo,\n              onMapCreated: (gController) =\u003e controller.complete(gController), //Complete the future GoogleMapController\n            ),\n          ),\n        );\n      }\n\n      void newLocationUpdate(LatLng latLng) {\n         var marker = RippleMarker(\n           markerId: kMarkerId,\n           position: latLng,\n           ripple: true,\n         );\n         setState(() =\u003e markers[kMarkerId] = marker);\n      }\n    }\n ```\n## Using Ripple Effect\n\nYou only need to use the marker wrapper class ``` RippleMarker```, and set the ripple ```flag```  in order you can the ripple state.\n\n```dart\n  Animarker(\n    // Other properties\n    rippleRadius: 0.5,  //[0,1.0] range, how big is the circle\n    rippleColor: Colors.teal, // Color of fade ripple circle\n    rippleDuration: Duration(milliseconds: 2500), //Pulse ripple duration\n    markers: \u003cMarker\u003e{\n      //Ripple Marker\n      RippleMarker(\n        markerId: MarkerId('MarkerId1'),\n        position: LatLng(0, 0),\n        ripple: true,  //Ripple state\n      ),\n      //Non-ripple marker\n      Marker(\n        markerId: MarkerId('MarkerId2'),\n        position: LatLng(0, 0),\n      ),\n    },\n    // Other properties\n  )\n```\nSo, Let's it rip!\n\n## Using Rotation\n\nThe Marker rotation can be useful for Uber-like or delivery apps. The bearing or heading is the angle of direction which the *Marker* is moving toward to over the earth.\n\n```dart\n  Animarker(\n    // Other properties\n    useRotation : true, // Actived by default\n    markers: \u003cMarker\u003e{\n      Marker(\n      markerId: MarkerId('MarkerId2'),\n      position: LatLng(0, 0),\n      )\n    },\n  // Other properties\n  )\n```\nThis way ```useRotation = true```, you control globally if *Marker* should rotate or not.\n\n## Using Curve and Duration\n\nJust like a normal *Flutter* animation, you can set a ```Curve``` o ```Duration``` to get the desire effect or result. So flexible, right?\n\n```dart\n  Animarker(\n    // Other properties\n    curve: Curves.bounceInOut,\n    duration: Duration(milliseconds: 2000),\n    markers: \u003cMarker\u003e{\n      Marker(\n      markerId: MarkerId('MarkerId2'),\n      position: LatLng(0, 0),\n      ),\n    },\n    // Other properties\n  )\n```\n\n## License\n\n BSD-3-Clause License   Copyright 2020  Gauris Javier. All rights\n  reserved.\n   Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions  are met:\n   1. Redistributions of source code must retain the above copyright\n  notice, this list of conditions and the following disclaimer.\n   2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the  documentation and/or other materials provided with the distribution.\n   3. Neither the name of the copyright holder nor the names of its contributors\n may be used to endorse or promote products derived from this software  without specific prior written permission.\n   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;\n OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgauris26%2Fflutter_animarker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgauris26%2Fflutter_animarker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgauris26%2Fflutter_animarker/lists"}