An open API service indexing awesome lists of open source software.

https://github.com/romanslack/vos_frontend

Flutter frontend for the VOS project
https://github.com/romanslack/vos_frontend

Last synced: 9 months ago
JSON representation

Flutter frontend for the VOS project

Awesome Lists containing this project

README

          

# VOS Frontend

[![Flutter](https://img.shields.io/badge/Flutter-3.0+-02569B?style=for-the-badge&logo=flutter&logoColor=white)](https://flutter.dev)
[![Dart](https://img.shields.io/badge/Dart-3.0+-0175C2?style=for-the-badge&logo=dart&logoColor=white)](https://dart.dev)
[![AI Powered](https://img.shields.io/badge/AI-Powered-FF6B6B?style=for-the-badge&logo=openai&logoColor=white)](https://openai.com)
[![Built with Claude Code](https://img.shields.io/badge/Built%20with-Claude%20Code-8B5CF6?style=for-the-badge&logo=anthropic&logoColor=white)](https://claude.ai/code)

A modern **Virtual Operating System** interface built with Flutter, featuring a sleek dark theme, AI-powered workspace, and elegant modal window management.

![VOS Frontend](readme_images/vos_frontend_intro.png)

## ๐ŸŒŸ What is VOS?

VOS (Virtual Operating System) is a cutting-edge Flutter web application that simulates a modern operating system interface within your browser. It features:

- **๐ŸŽจ Dark Modern Design** - Elegant UI with subtle bevels, shadows, and VOS design system
- **๐Ÿ“ฑ Modal App Management** - Up to 4 concurrent apps with drag, resize, minimize, and fullscreen
- **๐ŸŽฏ Smart App Rail** - Interactive launcher with visual state indicators
- **โšก High Performance** - Optimized animations and efficient state management
- **๐Ÿ–ฅ๏ธ Responsive Workspace** - Grid-based workspace with smooth fade effects

## ๐Ÿš€ Quick Start

### Prerequisites
- Flutter SDK 3.0+
- Modern web browser (Firefox recommended for best performance)

### Installation & Launch

1. **Clone the repository:**
```bash
git clone https://github.com/yourusername/VOS_frontend.git
cd VOS_frontend
```

2. **Install dependencies:**
```bash
flutter pub get
```

3. **๐ŸŽฏ Launch VOS (Recommended):**
```bash
flutter run -d web-server --web-port=8080
```

4. **Open in your browser:**
Navigate to **http://localhost:8080** in Firefox or Chrome

> **๐Ÿ’ก Pro Tip:** Use Firefox for optimal performance, or try `--profile` mode for faster Chrome experience.

## ๐Ÿ—๏ธ Architecture & Components

### Core Components

- **๐ŸŽ›๏ธ AppRail** - Left navigation with 9 app launchers (Phone, Calendar, Tasks, Notes, Browser, Analytics, Shop, Chat, Notifications)
- **๐Ÿ–ผ๏ธ VosModal** - Draggable, resizable modal windows with window controls
- **๐ŸŒ Workspace** - Grid background with edge fade effects
- **๐Ÿ”” Smart Notifications** - Elegant 4-modal limit warnings
- **โšก Modal Manager** - Production-grade state management system

### Design System

- **Colors**: Dark theme (`#212121` background, `#303030` surfaces, `#EDEDED` text)
- **Typography**: Clean, consistent text hierarchy
- **Shadows**: Dual-layer shadow system for depth
- **Icons**: Material Design outlined icons with circular backgrounds
- **Animations**: Smooth 150ms transitions with proper easing

## ๐ŸŽฎ Features

### โœจ Modal Window System
- **4 Concurrent Apps** - Maximum productivity without clutter
- **Drag & Drop** - Smooth repositioning within workspace bounds
- **Resize Controls** - Bottom-right corner resize handles
- **Window States** - Normal, minimized, fullscreen modes
- **Smart Positioning** - Auto-cascading placement for new windows

### ๐ŸŽฏ App Management
- **Visual Indicators** - Green dots (open), orange pulsing dots (minimized)
- **One-Click Launch** - Instant app opening from rail
- **State Persistence** - Remembers window positions and states
- **Limit Protection** - Elegant notifications prevent system overload

### ๐ŸŽจ Performance Optimizations
- **Efficient Rebuilds** - Strategic widget isolation and caching
- **Controlled Animations** - Managed animation lifecycles
- **Smart State Management** - Change detection and minimal notifications
- **Memory Management** - Proper disposal and cleanup

## ๐Ÿ› ๏ธ Development

### Project Structure
```
lib/
โ”œโ”€โ”€ core/
โ”‚ โ”œโ”€โ”€ modal_manager.dart # State management for modals
โ”‚ โ””โ”€โ”€ themes/ # VOS design system
โ”œโ”€โ”€ presentation/
โ”‚ โ”œโ”€โ”€ widgets/
โ”‚ โ”‚ โ”œโ”€โ”€ app_rail.dart # Left navigation rail
โ”‚ โ”‚ โ”œโ”€โ”€ vos_modal.dart # Modal window component
โ”‚ โ”‚ โ”œโ”€โ”€ workspace.dart # Grid background workspace
โ”‚ โ”‚ โ””โ”€โ”€ app_icon.dart # Enhanced app launcher icons
โ”‚ โ””โ”€โ”€ pages/
โ”‚ โ””โ”€โ”€ home/ # Main application layout
```

### Key Technologies
- **Flutter Web** - Cross-platform UI framework
- **Custom State Management** - Optimized ChangeNotifier pattern
- **Custom Painting** - Grid backgrounds and resize handles
- **Gesture Detection** - Advanced drag, resize, and hover handling

## ๐Ÿงช Testing & Performance

### Launch Options
```bash
# Development (slower but with hot reload)
flutter run -d web-server --web-port=8080

# Profile mode (faster performance)
flutter run -d web-server --web-port=8080 --profile

# Different renderers
flutter run -d chrome --dart-define=FLUTTER_WEB_USE_SKIA=true # CanvasKit
flutter run -d chrome --dart-define=FLUTTER_WEB_USE_SKIA=false # HTML
```

### Performance Tips
- **Use Firefox** for best Flutter web performance
- **Close browser DevTools** during testing
- **Try Profile Mode** for production-like performance
- **Disable browser extensions** that might interfere

## ๐Ÿ“ฑ Browser Compatibility

| Browser | Performance | Features | Recommended |
|---------|-------------|----------|-------------|
| Firefox | โญโญโญโญโญ | Full | โœ… Yes |
| Chrome | โญโญโญ | Full | โš ๏ธ Use --profile |
| Safari | โญโญโญ | Full | โœ… Good |
| Edge | โญโญโญโญ | Full | โœ… Good |

---

**Built with Flutter** | **Experience the future of virtual operating systems**