Git Product home page Git Product logo

Comments (10)

ibrierley avatar ibrierley commented on July 17, 2024

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.

josxha avatar josxha commented on July 17, 2024

@ibrierley I'll do a pull request with some additional changes.

from flutter_map_dragmarker.

ibrierley avatar ibrierley commented on July 17, 2024

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.

josxha avatar josxha commented on July 17, 2024

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.

ibrierley avatar ibrierley commented on July 17, 2024

Aha ok, super, thanks for the explanation.

from flutter_map_dragmarker.

tmaihoff avatar tmaihoff commented on July 17, 2024

Can you please update us when the new version is published?

from flutter_map_dragmarker.

ibrierley avatar ibrierley commented on July 17, 2024

There's a version on Git in the meantime that works with it.

from flutter_map_dragmarker.

ibrierley avatar ibrierley commented on July 17, 2024

(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.

ARASHz4 avatar ARASHz4 commented on July 17, 2024

Please publish new version in pub.dev

from flutter_map_dragmarker.

ibrierley avatar ibrierley commented on July 17, 2024

Should be done

from flutter_map_dragmarker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.