distance_route 0.0.9 copy "distance_route: ^0.0.9" to clipboard
distance_route: ^0.0.9 copied to clipboard

A Flutter package for calculating and displaying routes with Google Maps.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:distance_route/distance_route.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {






  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MapScreenRoute(bikeIcon: "assets/bike_icon.png", dropIcon: "assets/destination_icon.png", pickupIcon: "assets/pickup_icon.png", destinationLocation: LatLng(32.3, 71.5),  apiKey: '', onReach: () {  },),
    );
  }
}
2
likes
135
points
138
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for calculating and displaying routes with Google Maps.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_compass, flutter_polyline_points, geolocator, google_maps_flutter, google_maps_flutter_platform_interface, http, keep_screen_on

More

Packages that depend on distance_route