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

[Feature request]: Implement internal clipboard #446

Closed
1 task done
claws99 opened this issue Jul 11, 2023 · 5 comments
Closed
1 task done

[Feature request]: Implement internal clipboard #446

claws99 opened this issue Jul 11, 2023 · 5 comments
Assignees
Labels
enhancement Small enhancements to existing features

Comments

@claws99
Copy link

claws99 commented Jul 11, 2023

Is your feature request related to a problem? Please describe

Currently, cut, copy, paste don't work for non-text data (objects, images etc). Problem as highligted in #422 is that flutter doesn't grant system clipboard

Describe your feature request!

As a work around we can implement an internal clipboard which will get such jobs done. And enable us to move content from one page to another page. Or even within notebooks of our app.

Later on, when suitable solution arrives it can be modified to access system clipboard.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@claws99 claws99 added the enhancement Small enhancements to existing features label Jul 11, 2023
@github-project-automation github-project-automation bot moved this to 📕 Todo in Butterfly Jul 11, 2023
@CodeDoctorDE
Copy link
Member

I don't think an internal clipboard would be good.
There are a few things:

  • What if you copy text from another app. We can only use Clipboard.getData if we want to use the data
  • What if you close and reopen the app? We can't save these things on restart and otherwise we can't check if the user has restarted the computer.

I think implementing a lib would be better.
I'm implementing my own libraries here https://github.com/LinwoodDev/dart_pkgs and would put this under my package lw_sysinfo where you can get system information (currently only getFonts implemented).
The ffi system works great and for android we can use java or kotlin to implement those.

I think implementing an internal clipboard will need more work instead of just adding these feature to my library natively

@CodeDoctorDE
Copy link
Member

I tested a bit around and found these things out:

After investigations, I would try adding an internal clipboard here. We can think about adding an extra system for windows

@CodeDoctorDE
Copy link
Member

I think we can close this in favor of #422.
This is just an implementation idea and not really a new feature beside the one in #422

@claws99
Copy link
Author

claws99 commented Jul 27, 2023

Finally how was System clipboard implemented?

@CodeDoctorDE
Copy link
Member

CodeDoctorDE commented Jul 27, 2023

I used the libreoffice system: I don't use the system clipboard for non-text things.
The only operating system that really supports it is windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Small enhancements to existing features
Projects
Archived in project
Development

No branches or pull requests

2 participants