Besides the Flutter development setup on your computer, this project needs a
quizapi.io API key. The key is not stored in the repo — it is passed
in at build time and read via String.fromEnvironment:
flutter run --dart-define=QUIZ_API_KEY=qa_sk_your_api_key
flutter build --dart-define=QUIZ_API_KEY=qa_sk_your_api_keyIn VS Code, add it to .vscode/launch.json instead so you don't have to pass it every time:
{
"configurations": [
{
"name": "code_quizzy",
"request": "launch",
"type": "dart",
"toolArgs": ["--dart-define=QUIZ_API_KEY=qa_sk_your_api_key"]
}
]
}Without the key the app shows a "Missing API Key" screen rather than failing silently.
The app talks to the v1 API, which authenticates with an Authorization: Bearer <key> header
and returns its payloads inside a {success, data, meta} envelope. Topics are loaded at
runtime from GET /api/v1/categories, so the topic list never goes stale.
You've done entire steps correctly and I make sure that this project will have paramount effect on your progress learning Flutter
