[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
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...