Dart Flutter Build

A Flutter package that extends the Google Maps widget to provide directional indicators for markers located outside the current map view.

Screenshots

1 2

Features

Use this package in your Flutter app to:

  • Add direction indicators pointing to a marker on Google Maps
  • Customize the color and size of direction indicators.

Getting started

  1. To use this plugin, add google_maps_flutter as a dependency in your pubspec.yaml file.
  2. Do the basic setup for having Google Maps
  3. Create a Set of normal markers ( Set < Marker > ) and set it as markers parameter of GoogleMapWithDirectionIndicator widget
  4. Import google_maps_flutter package and this package;
  5. Enter parameters into the GoogleMapWithDirectionIndicator widget as you would with the GoogleMap widget
  6. Enter parameters for the direction indicator as well

Usage

GoogleMapWithDirectionIndicator(
      width: 200,
      height: 200,
      indicatorColor: Colors.red,
      directionIndicatorSize: const Size(25, 25),
      controller: _controller,
      initialCameraPosition: _kGooglePlex,
      onMapCreated: (GoogleMapController controller) {
        _controller.complete(controller);
      },
      markers: markers,
    );

Additional information

Contributing

We warmly welcome contributions to this project! If you're interested in helping improve it, please feel free to fork the repository, make your changes, and submit a pull request.

Feedback and Suggestions

Your feedback is highly appreciated! If you have any suggestions for features or improvements, please open an issue on our GitHub repository or reach out to us directly via email contact.