Code Monkey home page Code Monkey logo

flutter_breadcrumbs's Issues

Support for DragTarget and hover effect

I am using: Breadcrumbs.builder and pass the itemBuilder in order to build the TextSpan with TapGestureRecognizer, so I can capture click events.

The issue is that I need my breadcrumbs to be able to "receive" the drop event. It doesn't seem to be possible, since itemBuilder force type to be: TextSpan (It can't be just Widget), so if I wrap TextSpan with DragTarget it's not allowed unfortunately.

Ideally instead of: TextSpan I would provide DragTarget(child:InkWell()), so I can handle both drop event and have by default nice hover effect.

Is that somehow possible with this library?

Thanks for the great work so far !

Example of drag and drop: https://docs.flutter.dev/cookbook/effects/drag-a-widget

Option to disable onTap behaviour

Hey DevNico, this is a really cool flutter package. Maybe you could add an option to disable the onTap behaviour of the widget. In my project i tried to put the breadcrumb inside a button. I didnt want the 'expand' behaviour so i wrapped it with another GestureDetector (HitTestBehavior.opaque) but it still triggered the breadcrumb GestureDetector. At the end i had to wrap it with

Listener(
      behavior: HitTestBehavior.opaque,
      onPointerDown: ...
      ...
)

Apperently this is faster https://stackoverflow.com/questions/53063021/flutter-tap-delay-with-gesturedetector-in-a-tile-of-a-gridview/53063398#53063398.

Cheers!

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.