How to deploy a flutter website with high quality in pixels, perform fast to run the website, download images and animations?
What command do I have to write on the terminal in order to achieve this?
What kind o steps do I have to do?
Thank you in advance
CodePudding user response:
To correctly optimize and set up a flutter web app for production refer to the official Flutter documentation, which goes very deep on tips and to-dos when preparing for a deployment.
When you feel comfortable with the changes, prepare and deploy your app. The Flutter documentation helps us deploy a web app and is really well written!
Since you are asking for a "command" to run in the terminal:
as written in the documentation under the "Building the app for release" section:
Build the app for deployment using the flutter build web command. You can also choose which renderer to use by using the --web-renderer option
So use the following command to build your app:
flutter build web