Note: This assumes that you have an open terminal in this directory (/example):
To set up this examples project:
- rename the file
env.exampleto.env
mv env.example .env- fill the
.envfile with your replicate API key:
REPLICATE_API_KEY=<YOUR_API_KEY>- run:
# get packages
dart pub get
# loads your .env file and generates the env.g.dart at lib/env/env.g.dart
dart run build_runner build- run the examples:
# run the example
dart run lib/<example_file_name>