map_picker
0.0.3, released 5 years ago by an unverified publisher
A Flutter widget for creating a centered pin that animates with map movement for location selection.
What it does
It wraps a map widget and overlays a centered pin icon that can be animated with map movement. It provides a controller to notify when the map starts or stops moving, allowing developers to retrieve coordinates and reverse-geocode addresses.
AI-written summary of version 0.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need users to select a geographic location by panning and zooming a map.
- You want a centered pin overlay that responds to map movement.
Skip it when
- You do not need map-based location picking.
- You prefer an alternative mapping library that already includes built-in pin selection functionality.
Strengths
- Vendor-free map library that can work with different map widgets passed as children.
- Includes a custom MapPickerController for handling movement states.
Weaknesses
- Limited documentation and attributes beyond basic setup.
- Relies entirely on external map packages like google_maps_flutter for actual map rendering.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Requires adding the package to pubspec.yaml and configuring underlying map packages like google_maps_flutter.
MapPicker(
iconWidget: SvgPicture.asset("assets/location_icon.svg", height: 60),
mapPickerController: mapPickerController,
child: GoogleMap(
initialCameraPosition: cameraPosition,
onMapCreated: (GoogleMapController controller) {},
),
)Alternatives
Packages that do the same job and could replace map_picker.
- location_web
Web implementation of the location plugin for Flutter web.
74Compare - 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