
[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
- Relationships restricted to a max depth ...
When I do query like: ``` await _databases.listDocuments( databaseId: AppwriteConfig.DATABASE_ID, collectionId: AppwriteConfig.SERVICES_COLLECTI...
- Error sending push message from dashboar...
I am trying to implement appwrite fully into my app and am switching over from firebase. I registered FCM as a Provider and tried to send a push message via the...
- My organization deleted, how??
Getting error mesasges and I can't find my organization.
