flutter_map_directions 0.0.2 copy "flutter_map_directions: ^0.0.2" to clipboard
flutter_map_directions: ^0.0.2 copied to clipboard

outdated

A Flutter project package to show directions path on flutter_map

flutter_map_directions #

A flutter_map plugin for displaying directions between coordinates.

Usage #

Add flutter_map_directions to your pubspec.yaml:

dependencies:
  flutter_map_directions: any // or latest version

Add the layer widget into FlutterMap:

Widget build(BuildContext context) {
    return FlutterMap(
        children: [
            TileLayer(
                urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png'
            ),
            DirectionsLayer(
                coordinates: []
            ), // <-- add layer here
        ],
    );
}
11
likes
0
points
67
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter project package to show directions path on flutter_map

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_map, http, latlong2

More

Packages that depend on flutter_map_directions