screenshot
screenshot copied to clipboard
Capture screen without any effect?
The splash effect of a button is also captured. Is there a way to not capture any effect on the screen?
@mdat31 Can you try to capture after some delay like:
ElevatedButton(
onPressed: () async {
///Delay until splash animation is complete.
await Future.delayed(Duration(milliseconds: 500));
await _screenshotController.capture(delay: const Duration(milliseconds: 10));
},
child: Text("Child"),
)
can i use delay in _screenshotController.capture
?
ElevatedButton(
onPressed: () async {
///Delay until splash animation is complete.
await _screenshotController.capture(delay: const Duration(milliseconds: 500));
},
child: Text("Child"),
)