1.7 KiB
1.7 KiB
Easter Egg — Fiat Code Reveal
Date
2026-04-30
Status
Approved
Overview
Add a hidden Easter egg to the TracPulse app that opens https://fiatcode.dev when triggered, preceded by a fun celebratory animation.
Trigger
- Location:
SettingsScreen - Gesture: Triple-tap on the Settings screen
AppBar - Feedback: None until triggered
Animation Sequence
- A full-screen semi-transparent overlay appears over the Settings screen
- Animated "🎉 FIAT CODE! 🎉" text fades in with a scale-up effect
- Animation holds for ~1.5 seconds, then fades out
- The URL
https://fiatcode.devopens in the browser (viaurl_launcher)
Technical Approach
- Overlay:
Stackwidget layer above current screen content, managed via a stateful overlay widget - Animation: Flutter built-ins —
AnimatedOpacity+AnimatedScale(no extra packages needed) - URL Launch:
url_launcherpackage (check if already inpubspec.yaml; if not, add it) - State: Local state in
SettingsScreencontrols overlay visibility and animation - One-shot: Overlay auto-dismisses after animation completes; subsequent triple-taps re-trigger
Components
EasterEggOverlaywidget — positioned widget withAnimatedOpacity+AnimatedScale, displays centered animated text, auto-dismisses viaFuture.delayed- Gesture detector —
GestureDetectorwithonTapcounting triple-taps on the SettingsAppBar - URL launcher call —
await launchUrl(Uri.parse('https://fiatcode.dev'))after animation completes
Files Affected
lib/settings_screen.dart— add overlay, gesture detector, animation logicpubspec.yaml— addurl_launcherif not already present