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

The getter 'path' isn't defined for the type 'Uint8List'. #3

Open
akashlilhare opened this issue Jun 6, 2021 · 1 comment
Open

Comments

@akashlilhare
Copy link

void _takeScreenshot() async {final imageFile = await _screenshotController.capture(); Share.shareFiles([imageFile.path]); }

when I try to call imagefile.the path then it gives me the following errro:
The getter 'path' isn't defined for the type 'Uint8List'.

@yurydemin
Copy link

void _takeScreenshot() async {final imageFile = await _screenshotController.capture(); Share.shareFiles([imageFile.path]); }

when I try to call imagefile.the path then it gives me the following errro:
The getter 'path' isn't defined for the type 'Uint8List'.

hello, captured image available in memory. You have to save it (to get path) or use it from memory (like Image.memory()).
Look at the screenshot package readme and examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants