Preskoči na vsebino

Building and running

Web App

nevarnost

CORS is not yet implemented for production configuration.

Building

flutter build web

For production:

flutter build web --release

Running

flutter run -d chrome

Running in production only possible with --web-browser-flag --disable-web-security.

flutter run -d chrome --web-browser-flag --disable-web-security --release

Android App

flutter build apk --split-per-abi //Build app with all architectures - Mostly used for test builds
flutter build appbundle //Build appbundle - Needed for Play Store

iOS/MacOS App

For iOS or MacOS, open the project in Xcode and build & archive the project from there. More information can be found here More information about building MacOS app can be found here

An alternative is to run the following command in project home directory

flutter build ipa

or for MacOS

flutter build macos

And then open the project in Xcode and archive the project from there. -- Or using an app like transporter to upload the ipa to App Store Connect

Windows App

pozor

Windows app is not tested yet.

For more information, see here

flutter build windows //Build windows app 

Linux App

pozor

Linux app is not tested yet.

For more information, see here

flutter build linux //Build linux app