interactive_maps_marker for Flutter

Easy to use Animated Maps Markers with detail card. Use it for store or any place locator.



Add this package to your pubspec.yaml in dependencies: section

  interactive_maps_marker: ^0.0.1

This package depends upon google_maps_flutter so first setup this by following This Guide

Update dependencies

flutter pub get

You can now add a InteractiveMapsMarker widget to your widget tree.

Simple Usage

In your widget import the package and use InteractiveMapsMarker Widget


import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import 'package:interactive_maps_marker/interactive_maps_marker.dart';

class ExplorePage extends StatelessWidget {
  Widget build(BuildContext context) {

    return InteractiveMapsMarker(
      items: <MarkerItem>[
        MarkerItem(id: 1, latitude: 31.4673274, longitude: 74.2637687),
        MarkerItem(id: 2, latitude: 31.4718461, longitude: 74.3531591),
      center: LatLng(31.4906504, 74.319872),
      itemContent: (context, index) {
        return Text("Current Item $index");


Advanced Usage

Coming Soon

Customise with parameters

You can customise it by passing various parameter values. Details about all parameters is as follows.

ParameterTypeDefault ValueDescription
itemsList<MarkerItem>noneList of Markers with type of MarkerItem. This parameter is required and cannot be null.
itemContentIndexedWidgetBuildernoneThis is builder function which will receive context and index. You must return a Widget which will show on a pre designed container. This is exactly like you use ListView Builder. Not applicable when using itemBuilder
centerLatLngLatLng(0.0, 0.0)Center point for initial map display.
zoomdouble12.0Default zoom value for initial map screen.
itemHeightdouble116.0Height of your detail item. Not applicable when using itemBuilder
itemPaddingEdgeInsetsGeometryEdgeInsets.only(bottom: 80.0)Padding for item detail card. Mainly used for bottom padding.
itemBuilderIndexedWidgetBuildernullIf you don't want default container and want to build the bottom widget yourself, you can use this builder instead of itemContent and have full control over UI. This is builder function which will receive context and index. You must return a Widget.


Atiq Samtia– @AtiqSamtia –

Distributed under the MIT license.


  1. Fork it (
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request