Skip to content
pubscout

maps_curved_line

1.0.2, released 6 years ago by an unverified publisher

Generate points to draw curved lines on Google Maps.

WASM-ready
$ flutter pub add maps_curved_line

What it does

A package to help draw curved lines on Google Maps. It generates a list of LatLng which can be used to render a curved polyline between a start and end LatLng.

AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to draw a curved route between two points on Google Maps
  • You want a cost-effective way to display routes without complex routing engines

Skip it when

  • You are not using google_maps_flutter
  • You need detailed road-following navigation routes

Strengths

  • Simple API to generate curved line coordinates
  • Integrates directly with google_maps_flutter

Weaknesses

  • Limited functionality strictly focused on generating curve points
  • Not documented for non-Google map packages

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Add the dependency to pubspec.yaml and import the package.

import 'package:maps_curved_line/maps_curved_line.dart';

final LatLng _point1 = LatLng(12.947437, 77.681345);
final LatLng _point2 = LatLng(12.948767, 77.689120);

Polyline(
  polylineId: PolylineId("line 1"),
  points: MapsCurvedLines.getPointsOnCurve(_point1, _point2),
)

Alternatives

Packages that do the same job and could replace maps_curved_line.

Works with

Packages commonly used together with maps_curved_line: ones it builds on, ones built on it, and its own family.