Reputation: 43
I have developed a web app using Flutter in Android Studio IDE, and have enabled Flutter Web from the Flutter console. In Android Studio, I am able to run the app and use Chrome(web) as my target device; and the app runs well.
Can anyone advice what is the next step to export this to a web hosting service? Like PorkBun. Any help is appreciated, thanks!
Upvotes: 2
Views: 1497
Reputation: 685
Run this command in the terminal:
flutter build web
It will compile your project for the web, then you should see a generated files under [your_project]/build/web
Upload the contents of the web
folder to the root folder of your hosting service. The main page index.html
should run your app.
Upvotes: 6