I am trying to use release mode of my app. Here are the methods i have tried:
1-I executed flutter clean
2-I executed flutter build web --release
3-I executed flutter run -d chrome --release
But when I open project/build/web/index.html
it shows blank screen:
Does anybody know the solution?
CodePudding user response:
In index.html you sould see a basehref. The flutter site is displayed only if the base href matches to te domain in which it is hosted. Try hosting it and adding the relevant base href. You can also delete this line and it should work as expected
CodePudding user response:
Open your web
folder with vscode and open index.html
, It will show like
And use Live Server extension
And then run by tapping Go live