简体   繁体   中英

How to take a system screenshot of Flutter

How to take a system screenshot like from the buttons on the phone? For example, I clicked a button in which the

Future.delayed( const Duration(seconds: 5), () => _doTakeScreenshot());

I pressed the HOME button to go to the desktop, 5 seconds passed and a screenshot was taken. I want to take a screenshot OUTSIDE the app. I found the package screenshot:^1.2.3 . But he cannot take a screenshot outside of the application

You can use this package for taking screenshots, screenshotController.capture(delay: Duration(milliseconds: 10))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM