You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was working on drop zone highlighting. I used a raw drop event listener to change the widget state when the user starts dragging a file over the application. I had to import a file from the src directory to complete my task.
//Linter message: Import of a library in the 'lib/src' directory of another package. (Documentation)import'package:desktop_drop/src/events.dart';
...
@overridevoidinitState() {
DesktopDrop.instance.addRawDropEventListener(_onDropEvent);
...
super.initState();
}
@overridevoiddispose() {
DesktopDrop.instance.removeRawDropEventListener(_onDropEvent);
...
super.dispose();
}
void_onDropEvent(DropEvent event) {
if (_dropSubject.value && (event isDropDoneEvent|| event isDropExitEvent)) {
_dropSubject.add(false);
} elseif (!_dropSubject.value && event isDropEnterEvent) {
_dropSubject.add(true);
}
}
The text was updated successfully, but these errors were encountered:
I was working on drop zone highlighting. I used a raw drop event listener to change the widget state when the user starts dragging a file over the application. I had to import a file from the
src
directory to complete my task.The text was updated successfully, but these errors were encountered: