Flow State Learning โข Cyber-Fluent Design โข Offline-First Architecture
An interactive learning platform transforming tech education through gamification, immersive UI, and intelligent caching.
Architect Nexus Mark 2 is not just a developer news feedโit's a high-fidelity, interactive learning ecosystem designed for "Flow State" learning. Users consume tech guides, AI insights, and coding tutorials through a gamified, visually immersive interface that keeps them engaged and progressing.
- Frictionless Learning: Seamless, futuristic environment for consuming complex tech topics
- Flow State Experience: < 100ms interactions with optimistic UI updates
- Personalized Journey: AI-driven content recommendations based on your learning cache
- Interactive Modules: Swipeable slides with syntax-highlighted code and instant feedback
- Increased Retention: Gamification through animated mascot and skill constellation
- Engagement Metrics: Track completion rates, session time, and cache utilization
- Scalable Content: CMS-driven module system for easy content management
Background Primary: #121212 // Deep Charcoal
Background Secondary: #0B0C15 // Midnight Blue
Accent Primary: #00F0FF // Electric Blue
Accent Secondary: #BD00FF // Neon Purple
Text Highlight: #FFD700 // Cyber Yellow
Glass Overlay: RGBA(255, 255, 255, 0.05) + Blur(10px)- Headers: Orbitron (Uppercase, Wide spacing)
- Body: Inter (High readability)
- Code: JetBrains Mono (Syntax highlighted)
- Glass Cards: Translucent overlays with subtle gradients
- Floating Navigation: Bottom dock that disappears on scroll for immersion
- Spark Mascot: Dynamic geometric companion providing real-time feedback
lib/
โโโ core/
โ โโโ theme/ # Design system tokens
โ โ โโโ app_colors.dart
โ โ โโโ app_typography.dart
โ โ โโโ app_dimens.dart
โ โ โโโ app_theme.dart
โ โโโ router/ # Navigation configuration
โ โโโ app_router.dart
โโโ features/
โ โโโ auth/
โ โ โโโ domain/ # Pure business logic
โ โ โ โโโ entities/
โ โ โ โโโ repositories/
โ โ โโโ data/ # API & local cache
โ โ โโโ presentation/ # UI & ViewModels
โ โโโ home/ # Content discovery stream
โ โโโ learning/ # Interactive module viewer
โ โโโ profile/ # The Cache - Progress & saved content
โโโ main.dart
Single Source of Truth: Local database (Hive)
Sync Flow:
- Read: UI reads from Local DB
- Write: UI writes to Local DB โ Background sync to Cloud
- Fetch: Background Service pulls from Cloud โ Updates Local DB โ UI reacts
- OAuth 2.0: GitHub, Google, Apple Sign-In
- Email/Password authentication
- "Hyperspace Login" animation
- Preference setup with tag selection
- Hero Cards with 3D-rendered thumbnails
- Daily Byte: <60 second tips in horizontal scroll
- Smart sorting based on user cache history
- Floating glass bottom navigation
- Swipeable slide-based modules (6-10 slides)
- Interactive code blocks with syntax highlighting
- Copy/Run functionality
- Neon progress bar at top
- Haptic feedback on completion
- My Stacks: Folder-based content organization
- Skill Constellation: Visual skill tree with lit-up nodes
- Resume Learning: Unfinished modules section
- Progress tracking and stats
- Framework: Flutter (60fps animations support)
- State Management: Riverpod
- Navigation: go_router
- Animations: flutter_animate
- Local Database: Hive (offline-first)
- Authentication: Firebase Auth
- Content Delivery: To be integrated with CMS
- Typography: Google Fonts (Inter), Orbitron
- Icons: Material Icons + Custom assets
- Flutter SDK (>=3.0.0)
- Dart SDK
- Android Studio / Xcode for mobile development
- VS Code with Flutter extension (recommended)
-
Clone the repository
git clone <repository-url> cd "Mark ll"
-
Install dependencies
flutter pub get
-
Download custom fonts
- Download Orbitron from Google Fonts
- Place font files in
assets/fonts/ - Files needed:
Orbitron-Regular.ttf,Orbitron-Bold.ttf
-
Run the app
flutter run
Generate code for models and repositories:
flutter pub run build_runner build --delete-conflicting-outputs- Variables: camelCase (
userProfile,learningProgress) - Classes: PascalCase (
ModuleCard,AuthService) - Files: snake_case (
home_screen.dart,auth_repository.dart)
- No Magic Numbers: All dimensions come from
AppDimens - Strict Typing:
anytype is forbidden - Widget Modularity: Max 200 lines per widget file
- Layer Separation: UI never directly accesses database
/features/[feature_name]/
โโโ data/ # API calls, DTOs
โโโ domain/ # Entities, UseCases (The "Rules")
โโโ presentation/ # Widgets, ViewModels (The "Look")
An event-driven geometric UI companion that:
- Observes: UserActivityStream
- Reacts:
- AppLaunch โ WaveAnimation
- ScrollIdle(5s) โ PeekAnimation
- ModuleComplete โ CelebrationLoop
Implementation: Global Overlay Widget on top of Z-index stack
| Metric | Target | Description |
|---|---|---|
| Completion Rate | 60% | % of users finishing opened modules |
| Session Time | >5 min | Average time spent per session |
| Cache Utilization | 40% | % of users saving โฅ1 item/week |
| Priority | Feature | User Story |
|---|---|---|
| P0 | Auth Rewrite | "As a user, I want to sign up with one tap using GitHub so I can start learning immediately." |
| P0 | Visual Overhaul | "As a user, I want a dark mode interface with neon accents so that reading for long periods is easy on my eyes." |
| P1 | The Cache | "As a user, I want to 'Bookmark' a tutorial so I can find it easily in my Profile later." |
| P1 | Slide View | "As a user, I want to consume guides in bite-sized slides rather than long scrolling text." |
| P2 | Mascot Logic | "As a user, I want the mascot to give me a visual cue (thumbs up/glow) when I finish a chapter." |
Before merging any code for Mark 2, ensure:
- Dark Mode works perfectly (no white flashes)
- "Back" navigation feels instant (cached state)
- Mascot appears correctly on designated screen
- Code is linted and follows directory structure
- All UI components adhere to Cyber-Fluent design system
- App is fully offline-first with seamless caching
- Flow State UX maintained (<100ms interactions)
- Mascot interactions are smooth and engaging
- Thoroughly tested for performance and scalability
- Codebase is well-documented and maintainable
This is a structured project following clean architecture principles. When contributing:
- Follow the coding standards outlined above
- Maintain layer separation (Domain/Data/Presentation)
- Use design system tokens (no hardcoded colors/sizes)
- Write tests for business logic
- Ensure offline-first data flow
[Add your license here]
Built with โค๏ธ for Flow State Learning