#!/usr/bin/env pwsh # Flutter Web Development Server with Hot Reload Write-Host "Starting Flutter Web in Debug Mode with Hot Reload..." -ForegroundColor Green Write-Host "Press 'r' to hot reload, 'R' to hot restart, 'q' to quit" -ForegroundColor Yellow Write-Host "" # Kill any existing flutter processes Get-Process -Name "dart" -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue # Run Flutter in debug mode on a specific port with hot reload enabled flutter run -d chrome --web-port 8081 --web-hostname 0.0.0.0 --dart-define=Dart2jsOptimization=O0