Simple showcase for Flutter on Codesphere using the default Flutter Application template.
- Flutter SDK (>=3.0.0)
- Dart SDK (>=3.0.0)
cd demo_app
flutter pub get
flutter run -d web-server --web-port 8080App will be available at http://localhost:8080
cd demo_app
flutter clean && flutter pub get
flutter build webThe built app can be found and served from demo_app/build/web, e.g. with simple webserver.
cd demo_app
nix develop --extra-experimental-features nix-command --extra-experimental-features flakesThis will create a Nix devShell environment with Flutter and the Android SDK installed.
The Android SDK has various configuration option, like the API levels, which are containing in the Nix flake flake.nix.
When in the devShell:
cd demo_app
flutter build apk --release- The
ci.demo.ymlprepare step installs Flutter - The run step starts the Flutter development server (
flutter run -d web-server) - Execute both prepare and run step and use
Open Deployment
- The
ci.ymlprepare step installs Flutter and builds the App - The run step starts a Python web server in the build output
- Execute both prepare and run step and use
Open Deployment