Flutter Web App working fine on localhost but when deploy on server show blank screen

Issue

when i run flutter run -d chrome application works fine but when i deploy on hpanel server it show blank screen. this is inspect console show:enter image description here

Please help.
thanks.

Solution

I understand the issue.
I am not using the root directory of the website like "your_domain.com/web" so that why I have to rename the folder in index.html from "/" to "/web/".
example: In index.html:

to .

Answered By – Hassan ali

Answer Checked By – Marilyn (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *