AgoraIO-Community / VideoUIKit-Flutter

Flutter plugin to simply integrate Agora Video Calling or Live Video Streaming to your app with just a few lines of code.
https://agora-flutter-uikit.vercel.app/
MIT License
139 stars 78 forks source link

The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't. #159

Open jatin-web opened 1 year ago

jatin-web commented 1 year ago

Describe the bug I am getting this bug when I tried to run the basic code copied from agora_uikit package.

To Reproduce Steps to reproduce the behavior:

  1. Add the package to your project
  2. Add the Code mentioned in the package documentation in pub dev
  3. Run the project

Expected behavior Should run the project

Screenshots

Screenshot 2023-09-30 at 2 00 56 PM
ardeshir-33033 commented 1 year ago

I added userName to my AgoraClient and fixed this. AgoraClient( agoraConnectionData: AgoraConnectionData( appId: appId, channelName: callName!, tempToken: token, uid: calleeId, username: callName!), );

although I did not even updated my Agora package. I did see this bug but the problem is after I added this I get this error.

AgoraRtmChannel sendMessage failed errorCode: 102