This is Flutter app with python(flask)
If I debug, it shows an exception
If I run the flutter app in chrome, it is interacting with flask and gives the correct response. But when I run this app in mobile, it shows the above error. I have included the internet permission in Android.manifest file.

You can't reach localhost (127.0.0.1) from your phone, it works on chrome because the browser is running on the same machine as the server.
Use the local IP of your machine (e.g. 192.168.x.x) and make sure the phone/emulator is connected to the same network/wifi.