Logo Quiz icon

Personnaliser

Documentation

Guide de configuration pour Logo QuizVisuella

Assets

Sound effects, animation files and image assets are declared centrally in one Dart file so you don't have to search the codebase to find them.

Where they live

code
lib/src/utils/assets_utils.dart
assets_utils.dart

Every asset the app loads at runtime — SFX, Rive animations, static illustrations — is referenced from constants declared here. Swap the constant, drop the new file into assets/, and the app picks it up.

Sound effects

Drop your .mp3 or .wav files into:

code
assets/sfx/

Then point the SFX constants in assets_utils.dart at your new filenames.

SFX assets folder

After adding files

Flutter needs to know about new asset paths. Confirm your file is covered by the assets: list in pubspec.yaml — the shipped pubspec.yaml already covers the assets/ root recursively, so simply dropping a file into a covered subfolder is enough. If you add a brand-new subfolder, add it to pubspec.yaml and run:

bash
flutter pub get