Comments (10)
I've updated this in Git. Can you give it a go, and check the dragging works ok, as a few bits changed in flutter_map v4 affecting that.
Note the removal of //absorbPanEventsOnScrollables: false, from flutter_maps MapOptions as no long available.
from flutter_map_dragmarker.
@ibrierley I'll do a pull request with some additional changes.
from flutter_map_dragmarker.
Thanks, there's a few other publish warnings (prints and consts) I was just looking at (the lib/main.dart can probably go), but one I'm confused by is...
info - lib/dragmarker.dart:9:9 - Constructors for public widgets should have a named 'key' parameter. Try adding a named parameter to the constructor. - use_key_in_widget_constructors
However, the constructor does take a key value const DragMarkers({Key? key, this.markers = const []});
Any thoughts ?
from flutter_map_dragmarker.
Will be fixed in josxha@4492d95.
const DragMarkers({Key? key, this.markers = const []})
does not actually make use of the key. I wasn't aware of this for a long time, too.
The old implementation would've needed to pass the key to the super constructor with
const DragMarkers({Key? key, this.markers = const []}) : super(key: key);
But there is an awesome new feature in dart where you can just use it as follows:
const DragMarkers({super.key, this.markers = const []});
(Btw that's why I raised the minimum dart sdk version to match flutter_map in flutter_map_line_editor and now in this package 😁)
from flutter_map_dragmarker.
Aha ok, super, thanks for the explanation.
from flutter_map_dragmarker.
Can you please update us when the new version is published?
from flutter_map_dragmarker.
There's a version on Git in the meantime that works with it.
from flutter_map_dragmarker.
(sorry, I wouldn't nec recommend doing that as there may be some more changes, but just if you need it in the interim)
from flutter_map_dragmarker.
Please publish new version in pub.dev
from flutter_map_dragmarker.
Should be done
from flutter_map_dragmarker.
Related Issues (20)
- Dependency conflict with flutter_map_tappable_polyline HOT 2
- Rotable markers - The original flutter_map has rotab HOT 1
- Rotatable markers? HOT 9
- Flutter_Map v2.0.0 - Incompatible HOT 3
- On Rebuild a DragMarkers position is reset to its Intial Position HOT 14
- Flutter_Map no longer appears to have required parameters HOT 2
- Flutter_Map v3.0.0 - Incompatible HOT 3
- Programmatically update the location of a marker that already exists HOT 4
- DragMarkers randomly disappear when dragging flutter_map HOT 7
- Issue while dragging marker HOT 4
- Change color or icon after creation HOT 20
- Draggable Markers don't register drag or tap events sometimes after zooming HOT 15
- Not Compatible With latlong2 v0.9.0 HOT 6
- Not compatible with flutter_map v5.0.0 HOT 2
- Readme example is outdated HOT 1
- Not compatible with flutter_map v6.0.0 HOT 6
- Is there way to combine flutter_map_marker_popup and flutter_map_dragmarker? HOT 5
- Dragging problem HOT 2
- Marker display position is misaligned and offset does not work. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_map_dragmarker.