devnico / flutter_breadcrumbs Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
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
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.