Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The method 'substring' was called on null. E/flutter ( 2654): Receiver: null E/flutter ( 2654): Tried calling: substring(0, 1) #12

Open
abinvs-2019 opened this issue Apr 29, 2021 · 2 comments

Comments

@abinvs-2019
Copy link

Having the issue....

@Sanchaksh
Copy link

child: Text("${userName.substring(0, 1).toUpperCase()}", style: mediumTextStyle(),),

Are you having an issue in this line of code?

@Sanchaksh
Copy link

If yes that is because your chatRoom function is not getting any values and we can not pass null in flutter Widgets.
Please share your code for further correction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants