ZapbirdDocs

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:

Terminal
$ 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.

Terminal
$ 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.

Terminal
$ zapbird sdk list$ zapbird start --sdk <runner build>

#Choose how it runs

RuntimeWhat it is
bytecodeThe fast mode. Needs an SDK.
kernelFull Flutter.
flutter or widgetsSmaller previews.
Terminal
$ zapbird start --runtime kernel

Was this doc helpful?

Zapbird sends no analytics. Read about security.

Flutter and the related logo are trademarks of Google LLC. Zapbird is not endorsed by or affiliated with Google LLC.

esc