
[The argument type 'Uint8List' can't be assigned to the parameter type 'File'.dartargument_type_not_assignable Uint8List? bytes Type: Uint8List?]
Reference image - (https://i.stack.imgur.com/iSbTP.png)
My Code:
IconButton( onPressed: () async { Uint8List? bytes = await screenshotController.capture(); imageProvider.changeImage(bytes!); if (!mounted) return; Navigator.of(context).pop();
},
icon: const Icon(Icons.done),
)
Can someone suggest how to solve this error please? I am a beginner
I tried to pass bytes as parameter with null check, but this isn't working
https://www.youtube.com/watch?v=qXU5o8v4DX0&ab_channel=KODDev
I was coding after which this yt video. It seems to be working for him (Time stamp - 52:25), but not for me

Is this related to Appwrite?
Recommended threads
- Correct way to play videos on storage in...
I’m kinda stuck on what is the correct and seamless way of playing videos stored Appwrite storage in a flutter app. I have long videos of 3-5 hours but of less ...
- env var - APP_DOMAIN
Hey guys I am developing a flutter app - the app is already in production. Now I need to change the URL from the public IP to a domain. I cannot break the old u...
- mcp appwrite en claude code primeros pas...
Sin tener experiencia y realizando mis primeros pasos en claude code y conexiones con MCP intente configurar el MCP de appwrite segun la documentacion https://a...
