AgoraIO-Community/VideoUIKit-Flutter

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

jatin-web opened this issue · 1 comments

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

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