map_elevation 1.0.0 copy "map_elevation: ^1.0.0" to clipboard
map_elevation: ^1.0.0 copied to clipboard

outdated

A widget to display elevation of a track (polyline).

map_elevation #

pub package

A widget to display elevation of a track (polyline)

Features #

  • Draw elevation graph
  • Dispatch a notification with hover point on graph
  • Add colors for high elevation gradients
  • Ability to add child over graph

Getting Started #

NotificationListener<ElevationHoverNotification>(
    onNotification: (ElevationHoverNotification notification) {
      setState(() {
        hoverPoint = notification.position;
      });

      return true;
    },
    child: Elevation(
      getElevationPoints(),
      color: Colors.grey,
      elevationGradientColors: ElevationGradientColors(
          gt10: Colors.green,
          gt20: Colors.orangeAccent,
          gt30: Colors.redAccent),
    )
)
20
likes
0
pub points
55%
popularity

Publisher

verified publisherownweb.fr

A widget to display elevation of a track (polyline).

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, latlong

More

Packages that depend on map_elevation