This project designed using figma and built using flutter.
https://khalid-alsaleh-dev.github.io/
- Any Operating System (MacOS, Linux, Windows)
- Any IDE with Flutter SDK installed (Android Studio, VSCode etc)
- A little knowledge of Dart and Flutter
- Run the next command to Clone the repo to your machine
https://github.com/khalid-alsaleh-dev/khalid-alsaleh-dev.github.io - Run the next commands to install the required dependencies
cd <../path/to/khalid-alsaleh-dev.github.io>flutter pub get
- Run the next command to run the project on the web
flutter run -d chrome - Build for hosting:
flutter build web --release --wasm(output inbuild/web). Deploy the entirebuild/webdirectory, including itsassetsdirectory; deploying onlyweb/index.htmlcauses themodel_viewer_plusJavaScript file to return 404 on GitHub Pages.--wasmroughly doubles frame rate and halves memory in browsers with WasmGC (Chrome, Edge, Firefox, Safari 18.2+); other browsers automatically get the JavaScript build from the same output.- Serve with
Cross-Origin-Opener-Policy: same-originandCross-Origin-Embedder-Policy: require-corpso rendering runs on its own thread.web/_headerssets them on Netlify and Cloudflare Pages; on Firebase Hosting add them underhosting.headersinfirebase.json.
- Flutter 3.47 / Dart 3, Flame 1.38, flutter_animate 4.5, model_viewer_plus 1.10
- A hand-rolled 3D renderer (
lib/three_d/): procedural katana, shuriken and kunai drawn withCanvas.drawVertices, no WebGL setup needed - Scroll-driven scene (
lib/effects/blade_background.dart): the hero katana slashes across the screen, then parks and spins as you scroll; shurikens spin faster the faster you scroll - A pinned, scroll-scrubbed ninja duel (
lib/effects/ninja_duel.dart) that plays backwards when you scroll up - Sword-cut section headings, 3D tilt cards, a blade cursor trail with click sparks
- The projects dojo game, rebuilt to scale to any screen width: keyboard controls, or click a plate to auto-strike
- Sound effects across the site (
lib/audio/sound_fx.dart): the hero slash, every clash in the duel, and the dojo. Browsers only allow audio after the visitor's first click, tap or key press; the speaker in the navbar toggles it
Khalid Al-Saleh khalid.alsaleh.dev@gmail.com