Routing issues with flutter

Here is my site link:

I’ve created this using flutter using material navigations. When i open this site using exact url it opens but if i refresh it shows page not found and also if i navigate from site there are no issues but if i add /home or /login manually it shows page not found.

i tried adding this line to _redirects but didnt work
/* /index.html 200

This is correct.

The fact it hasn’t worked just indicates you made a mistake in your attempt.

The most common mistakes are:

  • The filename → it must be _redirects
  • The location → it must be in your Publish directory (the files Netlify deploys)

Run your build (same command as on Netlify) locally and ensure that the _redirects file ends up in your Publish directory. If it doesn’t, then adjust your project accordingly.