Home > Back-end >  Unable to get substring in flutter and wrong string length
Unable to get substring in flutter and wrong string length

Time:12-01

I am working on application to show mobile contact list with initials in a circle, but not getting initial character for some contact names.

In below code, first name is from mobile's contact list and second one I have typed from keyboard. I am able to get correct length and also first character of the second name, but length for first name is double and also not able to get first character (it gives �).

print("           
  • Related