screenshot icon indicating copy to clipboard operation
screenshot copied to clipboard

Capture screen without any effect?

Open mdat31 opened this issue 3 years ago • 2 comments

The splash effect of a button is also captured. Is there a way to not capture any effect on the screen?

image

mdat31 avatar Aug 03 '21 07:08 mdat31

@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"),
            )

ritheshSalyan avatar Aug 03 '21 08:08 ritheshSalyan

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"),
            )

mdat31 avatar Aug 03 '21 11:08 mdat31