
[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
- 1.6 to 1.7 does not work
Appwrite (self-hosted) stopped working after updating from 1.6.2 that was stable. Getting the general_server_error. Mentioning I fallowed all steps for upgrad...
- How to have two Appwrite Instances in Sy...
Hello, I am new to Appwrite. I am currently developing a training app for our sport with a friend and we would like to use Appwrite for this. We would like to d...
- Why do we need this unnecessary verifica...
I just want to create my own project and write PROJECT_ID in it, but why should I do this meaningless verification, wasting of time? And also, the tutorial said...
