[desktop_drop] Exporting 'events.dart' request
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
Research direction
Start by reading src/events.dart and the desktop_drop package's public entry point to understand how its event types are exposed. Make the event API available without importing the package's src directory, then verify the package's existing analysis or test checks pass.
Written by the indexing model from the issue text.
Description
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';
...
@override
void initState() {
DesktopDrop.instance.addRawDropEventListener(_onDropEvent);
...
super.initState();
}
@override
void dispose() {
DesktopDrop.instance.removeRawDropEventListener(_onDropEvent);
...
super.dispose();
}
void _onDropEvent(DropEvent event) {
if (_dropSubject.value && (event is DropDoneEvent || event is DropExitEvent)) {
_dropSubject.add(false);
} else if (!_dropSubject.value && event is DropEnterEvent) {
_dropSubject.add(true);
}
}
- Dominant language
- C
- Stars
- 512
- Forks
- 292
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 2
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MixinNetwork/flutter-plugins
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
MixinNetwork/flutter-plugins#413 · 8 reactions ·
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
MixinNetwork/flutter-plugins#401 · 2 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
MixinNetwork/flutter-plugins#504 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 76/100
MixinNetwork/flutter-plugins#502 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 76/100
MixinNetwork/flutter-plugins#497 ·
All issues in MixinNetwork/flutter-plugins
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
ClickHouse/pg_clickhouse#383 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
johnsonjh/emu2-cpm86#68 · 1 comment ·
Maintainers usually reply within 1 day
-
Zenmap CrashOpenZenmap
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
BasedHardware/omi#19306 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
fastfetch-cli/fastfetch#2619 ·
Maintainers usually reply within 1 day