My flutter website is displaying blank page on mobile browser

Issue

I have created a project using flutter web but after generating the release build, it works fine on desktop browsers but displays a blank (white) page on mobile browsers.

Note that: I also have tried url_stratergy and I am using Flutter version 1.26.0-17-pre. Below is the output of my flutter doctor
flutter doctor

I have generated the release build using the following command:

flutter build web --release

You can also visit the website to verify the issue at HerAmigo.

Looking forward to your help and suggestion!
Thanks
Ayesha Iftikhar

Solution

Please try running this command. This will repair and fix the pub cache.

flutter pub cache repair

Answered By – Usama Sarwar

Answer Checked By – Clifford M. (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published.