maps_curved_line
1.0.2, released 6 years ago by an unverified publisher
Generate points to draw curved lines on Google Maps.
$ flutter pub add maps_curved_lineWhat 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.
- google_maps_flutter_web
Web platform implementation of google_maps_flutter.
88Compare - google_maps_flutter_android
Android implementation of the google_maps_flutter plugin.
82Compare - google_maps_flutter_ios
iOS implementation of the google_maps_flutter plugin.
81Compare - location_web
Web implementation of the location plugin for Flutter web.
74Compare
Works with
Packages commonly used together with maps_curved_line: ones it builds on, ones built on it, and its own family.