Precision in Motion. A Flutter Web portfolio built on the "Deep Space Elegance" design language — generative backgrounds, kinetic typography, and a custom motion system, all rendered at 60 fps.
Live: www.raihandev.space
Raihan Fadli is a visual engineer based in Jakarta, Indonesia, balancing engineering, art, and design. This repository is both his live portfolio and a reference implementation of a heavily animated, token-driven Flutter web app.
| Layer | Technology |
|---|---|
| Framework | Flutter 3.41+ (web, CanvasKit renderer) |
| Language | Dart 3.11+ |
| Routing | go_router — / and deep-linkable /work/:id |
| Typography | google_fonts — Space Grotesk, Inter, JetBrains Mono |
| Smooth scrolling | flutter_web_scroll (Lenis-style) |
| Icons | lucide_icons_flutter |
| Motion extras | confetti, custom painters & implicit animations |
| Visibility-driven reveals | visibility_detector |
| Contact form | EmailJS over http, keys injected via --dart-define |
| CI/CD | Vercel Git integration (vercel_build.sh) on push to main |
lib/
├── core/ # design tokens (app_tokens, app_typography, app_theme),
│ # constants, router, responsive utils, email service
├── data/ # models + portfolio_data.dart — single source of ALL content
├── shared/ # painters (particles/grid/glow), glass cards, custom cursor,
│ # magnetic buttons, scroll-reveal animations
└── features/ # intro, hero, about, works, experience, statement, contact,
# shell (portfolio_shell + floating_nav)
git clone https://github.com/lraihan/polymorphism.git
cd polymorphism
flutter pub get
flutter run -d chromeThe app runs fully without configuration — the contact form simply falls back to a mailto: link until EmailJS keys are provided (see Configuration).
| Requirement | Version |
|---|---|
| Flutter SDK | 3.41 or newer (stable channel) |
| Dart SDK | 3.11 or newer (ships with Flutter) |
| Browser | Any modern browser; Chrome recommended for development |
Verify with flutter doctor and flutter --version.
# Debug / local
flutter run -d chrome
# Release build (output in build/web/)
flutter build web --releaseNote: the
--web-rendererflag no longer exists in Flutter 3.41+. CanvasKit is the default renderer — do not copy older tutorials that pass--web-renderer canvaskit.
The android/, ios/, linux/, macos/, and windows/ directories are untouched platform scaffolds. Web is the only supported and deployed target.
All personal content lives in exactly two places — edit these to make the portfolio yours:
| File | What it holds |
|---|---|
lib/data/portfolio_data.dart |
Projects (titles, descriptions, screenshots, tech stacks), career timeline, skills, social links |
lib/core/constants/strings.dart |
Site title, hero copy, section headings, bio, contact copy |
Project galleries live in assets/works/_gallery/<project>/ (referenced from lib/core/constants/assets.dart) and are registered in pubspec.yaml.
Design tokens (colors, durations, curves, spacing) live in lib/core/theme/app_tokens.dart; typography in lib/core/theme/app_typography.dart.
The contact form sends real email through EmailJS. Credentials are injected at build time via --dart-define and are never committed:
cp .env.example .env.local # then fill in your credentials| Variable | Source |
|---|---|
EMAILJS_SERVICE_ID |
EmailJS dashboard → Services |
EMAILJS_TEMPLATE_ID |
EmailJS dashboard → Email Templates |
EMAILJS_PUBLIC_KEY |
EmailJS dashboard → Account → API Keys |
Run with the keys:
flutter run -d chrome \
--dart-define=EMAILJS_SERVICE_ID="..." \
--dart-define=EMAILJS_TEMPLATE_ID="..." \
--dart-define=EMAILJS_PUBLIC_KEY="..."Without keys, the form gracefully degrades to a mailto: fallback. Full walkthrough: ENVIRONMENT_SETUP.md.
Hosted on Vercel at www.raihandev.space.
Every push to main triggers Vercel's build, which runs vercel_build.sh — it fetches the pinned Flutter SDK and runs flutter build web --release --no-tree-shake-icons, injecting the EmailJS keys as --dart-defines. Config lives in vercel.json (buildCommand, outputDirectory: build/web, SPA rewrites). The EmailJS values are set as Vercel Project → Environment Variables:
EMAILJS_SERVICE_ID,EMAILJS_TEMPLATE_ID,EMAILJS_PUBLIC_KEY
vercel_build.shmust stay LF (enforced by.gitattributes) — a CRLF would make bash choke when the Vercel CLI uploads it from Windows.
npm i -g vercel
vercel link # link to the existing "polymorphism" project
vercel --prod # build on Vercel's infra and alias to production./build_prod.shThe script loads .env.production (or system/CI environment variables), validates that all three EmailJS variables are set, and produces a release build in build/web/.
- Firebase Hosting —
flutter build web --release, thenfirebase init hosting(public dir:build/web) andfirebase deploy. - GitHub Pages —
flutter build web --release --base-href "/<repo-name>/", then publishbuild/webto thegh-pagesbranch.
This is a personal portfolio, but fixes and improvements are welcome:
- Fork and create a feature branch from
main. - Keep
flutter analyzeclean — the project enforces ~150 strict lint rules (package imports only,require_trailing_commas,prefer_expression_function_bodies,prefer_const_constructors, …). No warnings, no exceptions. - Respect the design system: use tokens from
app_tokens.dart(AppDurations,AppCurves, color constants) rather than hardcoding values. - Keep content in
lib/data/portfolio_data.dart/lib/core/constants/strings.dart— never inline copy inside widgets. - Open a pull request with a clear description of the change.
docs/— design language, architecture notes, and development guidesAUDIT_REPORT.md— the pre-redesign audit (architecture, technical debt, keep/refactor/rebuild decisions)CHANGELOG.md— release historyENVIRONMENT_SETUP.md— EmailJS environment variable setup
- Email: [email protected]
- GitHub: @lraihan
- LinkedIn: Raihan Fadli
- Instagram: @locio_raihan
Built with Flutter Web ✦ Jakarta, Indonesia