0

I am stuck with my flutter desktop application development. I'm looking for features like Java Robot for send keypress from my Flutter desktop application. Unfortunately, I did not find any Flutter desktop plugin or core functionality in Flutter.

Robot r = new Robot();    
r.keyPress(KeyEvent.VK_E);
r.keyRelease(KeyEvent.VK_E);
Akash khan
  • 861
  • 13
  • 25

1 Answers1

0

Flutter does not have any APIs for posting synthetic events to the OS. You would need to write native code (either as a plugin, or directly in the native part of your application) for each platform to do that.

smorgan
  • 20,228
  • 3
  • 47
  • 55