flutter_map_marker_popup 2.2.1 copy "flutter_map_marker_popup: ^2.2.1" to clipboard
flutter_map_marker_popup: ^2.2.1 copied to clipboard

A plugin for flutter_map to show a customisable popup Widget when a marker is tapped. Also provides methods to show/hide popups.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_map_marker_popup_example/popup_option_controls.dart';

void main() => runApp(const MyApp());

/// NOTE:
/// There are three main files:
///  - popup_option_controls.dart: This is just for toggling the different
///    options.
///  - map_with_popups.dart: This is where the actual map is and where you
///    can see an example of using the PopupMarkerLayerWidget.
///  - simple_map_with_popups.dart: A simplified example of using the
///    PopupMarkerLayerWidget.
class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Marker Popup Demo',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: const PopupOptionControls(),
    );
  }
}
113
likes
130
pub points
95%
popularity

Publisher

verified publisherbalanci.ng

A plugin for flutter_map to show a customisable popup Widget when a marker is tapped. Also provides methods to show/hide popups.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

animated_stack_widget, flutter, flutter_map, latlong2

More

Packages that depend on flutter_map_marker_popup