Open coder-with-a-bushido opened 8 months ago
I solved this issue by keeping the DropzoneView
on top of the rest of widgets and wrapping it with IgnorePointer
. So, we could add an example in the README like -
Stack(
children: [
// Other Widgets
IgnorePointer(
child: DropzoneView(...),
),
if(isHovered)
Center(child: Text('Drop files here')),
],
)
Use the onHover
, onDrop
and onLeave
and set the state for the variable isHovered
You sir, are a genius. Thanks from Nigeria!
According to the example in the README, the right way to use the widget is -
In many cases,
DropzoneView
is used inStack
with other widgets on top of it but there no example for it. Something like -But when there's
SelectionArea
in the widget above it, for some reasonDropzoneView
doesn't seem to work above it.