Devanagari fonts not displayed properly

I am trying to create a flutter web app in Devnagri(Marathi) but found that some of the words are not properly displayed.

I tried to convert the Unicode text to other formats for displaying it properly but it is very tedious and not with much efficiency.

when I try to print " ग्राम " it is printed " ग् राम " with no space in between. need some solution for that. I tried nearly all Unicode fonts available on google fonts every font gives the same output.