'flutter web on GitHub Pages not showing content
I am trying to release my existing flutter project on the web (it already is working on iOS and android).
According to this great article: How to embed your Flutter app in WordPress
I got to the point where I copied the build/web folder to my repository and pushed to master. I ensured everything exist in the repository.
yet NOTHING APPEARS on https://username.github.io/app_folder
Just a blank page :(
Solution 1:[1]
Found the problem in:
repository_folder/app_folder/index.html
When I deleted the following line, everything worked:
<base href="/">
Solution 2:[2]
Just change your<base href="/">
in the index.html file to
<base href="/<your_repository_name>/">
for example my repository name is crnb then change <base href="/">
to <base href="/crnb/">
This will surely work
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Philippe Fanaro |
Solution 2 | Noob Master |