longpress_popup 1.5.4 longpress_popup: ^1.5.4 copied to clipboard
A plugin for flutter_map to show a customisable popup Widget when a marker is long pressed. Also provides methods to show/hide popups.
import 'package:flutter/material.dart';
import 'package:longpress_popup_example/popup_option_controls.dart';
void main() => runApp(const MyApp());
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(),
);
}
}