flutter_map_tappable_polyline 0.1.0

Flutter Map Tappable Polyline #

pub package

A Polyline with onTap event listener
This is a plugin for flutter_map package

Usage #

Add flutter_map and flutter_map_tappable_polyline to your pubspec:

  flutter_map: any
  flutter_map_tappable_polyline: any # or the latest version on Pub

Add it in you FlutterMap and configure it using MarkerClusterGroupLayerOptions.

  Widget build(BuildContext context) {
    return FlutterMap(
      options: new MapOptions(
        plugins: [
      layers: [
          urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
          subdomains: ['a', 'b', 'c'],
          polylines: TaggedPolyline(
            tag: "My Polyline", // An optional tag to distinguish polylines in callback
            // ...all other Polyline options
          onTap: (TaggedPolyline polyline) => print(polyline.tag))

[0.1.0] - Initial release

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  flutter_map_tappable_polyline: ^0.1.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_map_tappable_polyline/flutter_map_tappable_polyline.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 17, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and flutter_map_tappable_polyline.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.3.0 <3.0.0
flutter 0.0.0
flutter_map ^0.8.2 0.8.2
Transitive dependencies
ansicolor 1.0.2
async 2.4.0
cached_network_image 2.0.0
charcode 1.1.3
collection 1.14.11 1.14.12
console_log_handler 1.1.6
convert 2.1.1
crypto 2.1.4
flutter_cache_manager 1.1.3
flutter_image 3.0.0
http 0.12.0+4
http_parser 3.1.3
intl 0.16.1
latlong 0.6.1
logging 0.11.4
matcher 0.12.6
meta 1.1.8
path 1.6.4
path_provider 1.6.0
pedantic 1.9.0
platform 2.2.1
positioned_tap_detector 1.0.3
quiver 2.1.2+1
sky_engine 0.0.99
source_span 1.6.0
sqflite 1.2.1
stack_trace 1.9.3
string_scanner 1.0.5
synchronized 2.2.0
term_glyph 1.1.0
transparent_image 1.0.0
tuple 1.0.3
typed_data 1.1.6
uuid 2.0.4
validate 1.7.0
vector_math 2.0.8