Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added drag and drop in the home screen #556

Closed

Conversation

asimbilal0001
Copy link

Fixes #497

Files can now be dropped on the home screen to download them. Without using global urlController.

@monkeyWie
Copy link
Member

Thanks, let me review it.

'other': details.files[0].name
};
Get.rootDelegate.offNamed(Routes.CREATE,
arguments: !Util.isWeb() ? args['web'] : args['other']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a incorrect.

@monkeyWie
Copy link
Member

Web compatibility would be a pain, so we can just support desktops.

@asimbilal0001
Copy link
Author

Done modifying only for desktop. Please check

Comment on lines +56 to +57
final args = {
'other': details.files[0].name
Copy link
Member

@monkeyWie monkeyWie May 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be details.files[0].path

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And there can return early when it is on web:

if (Util.isWeb()) {
  return;
}

@monkeyWie monkeyWie self-requested a review June 26, 2024 09:03
@yiyebaofu0518 yiyebaofu0518 requested review from yiyebaofu0518 and removed request for yiyebaofu0518 June 26, 2024 09:11
@monkeyWie monkeyWie self-requested a review June 26, 2024 09:11
Copy link
Member

@monkeyWie monkeyWie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rc

@monkeyWie monkeyWie closed this Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[功能需求]拖拽下载 | Drag and drop to download
3 participants