Work with another project
Point Zapbird at a project in another folder and choose between SDKs.
zapbird start uses the folder you are in. To run a project somewhere else, pass its folder:
$ zapbird start --project ../shop#Pass values to your app
Use --dart-define like you would with flutter run. You can repeat it, or read a JSON or .env file.
$ zapbird start --dart-define API_URL=https://example.com$ zapbird start --dart-define-from-file .env
These values are compiled into your app, so pass only keys that are safe to ship inside an app.
#Choose an SDK
With several runner SDKs installed, start uses the one your phone matched last, or else the one installed last. If your phone runs another installed build, start switches to it by itself and the QR code stays the same.
$ zapbird sdk list$ zapbird start --sdk <runner build>
#Choose how it runs
| Runtime | What it is |
|---|---|
bytecode | The fast mode. Needs an SDK. |
kernel | Full Flutter. |
flutter or widgets | Smaller previews. |
$ zapbird start --runtime kernel