A modern Flutter desktop application for Windows that unifies desktop process monitoring, blocking, and configuration settings into a single, fast, and maintainable cross-platform solution.
- β Password protection with encryption (SHA-256 + AES)
- β Application discovery from registry and file system
- β Process monitoring and blocking
- β Advanced scheduling (Always, Weekdays, Weekend, Custom time ranges)
- β Browser URL blocking via Windows registry
- β System tray integration
- β Admin privilege detection
- β Modern Material Design UI
- β Quick launch dashboard
- β Search functionality
- β Todo list management
- β Notes/memo feature
- β System power controls (Lock, Shutdown, Restart)
- β Alt+Space hotkey support (via window_manager)
- β Clean, modern interface
lib/
βββ main.dart # App entry point with Hive & window setup
βββ models/
β βββ blocked_app.dart # App blocking model with scheduling
β βββ todo_item.dart # Todo list items
β βββ installed_application.dart # Discovered apps
βββ services/
β βββ password_service.dart # Password encryption & verification
β βββ guardian_service.dart # Process monitoring & blocking
β βββ windows_service.dart # Windows API integration
βββ screens/
β βββ splash_screen.dart # Initial loading screen
β βββ home_screen.dart # Main app with navigation
β βββ dashboard_tab.dart # Dashboard with status & quick actions
β βββ apps_tab.dart # App management (to be implemented)
β βββ browser_tab.dart # Browser controls (to be implemented)
β βββ security_tab.dart # Security settings (to be implemented)
βββ widgets/ # Reusable UI components
βββ providers/ # Riverpod state management
βββ utils/ # Helper functions
- Flutter SDK 3.5.0+
- Windows 10/11
- Visual Studio C++ Build Tools (for native compilation)
- Install Dependencies
cd c:\Users\habib\PROJECTS\AmnShield\AmnShield_flutter
flutter pub get- Generate Hive Adapters
flutter pub run build_runner build --delete-conflicting-outputs- Run the Application
flutter run -d windows- Build Release
flutter build windows --release- Encrypted Password Storage: Uses
flutter_secure_storagewith SHA-256 hashing - Default Password:
deen(can be changed from Security tab) - Minimum Password Length: 4 characters
- Full Block: Terminates app immediately when detected
- Scheduled Block: Block only during specific times/days
- Always: Block 24/7
- Weekdays: Monday-Friday
- Weekend: Saturday-Sunday
- Custom: e.g., "Mon,Wed,Fri 08:00-17:00"
- Process Monitoring: Checks every 2 seconds
- Admin Detection: Warns if not running with elevated privileges
- Registry Management: Blocks Chrome/Edge extension pages
- System Tray: Minimizes to tray instead of closing
- Live Clock: Current time and date
- Status Cards: Guardian status and protected app count
- Quick Search: Launch web searches
- Todo List: Track tasks
- Notes: Quick memo taking
- Project structure
- Models and services
- Basic UI navigation
- Complete Hive adapter generation
- Test basic app flow
- Full apps tab implementation
- Application discovery dialog
- Add/remove blocked apps
- Schedule editor dialog
- App filtering and search
- Browser tab with URL list
- Registry integration for Chrome/Edge
- Security tab with password reset
- Admin privilege request
- Full todo list CRUD
- Notes persistence (Hive)
- Quick launch tiles
- Power controls integration
- Search integration with url_launcher
- System tray with context menu
- Global hotkey (Alt+Space)
- Auto-start on Windows boot
- Installer creation
- App icon and branding
flutter_riverpod: State managementhive&hive_flutter: Local databasewindow_manager: Window controls & hotkeys
flutter_secure_storage: Secure password storageencrypt: AES encryptioncrypto: Hashing algorithms
win32: Windows API accessffi: Native code interop
shared_preferences: Simple key-value storagepath_provider: File system pathsurl_launcher: Open URLs & filesintl: Date/time formatting
- Modern UI: Material Design 3, smooth animations
- Hot Reload: Instant UI updates during development
- Cross-Platform Ready: Easy to port to macOS/Linux
- Smaller Binary: ~25MB vs ~100MB+ with .NET runtime
- Better Performance: Native rendering, GPU acceleration
- Easier Maintenance: Simpler codebase, better tooling
- Smaller Size: ~25MB vs ~150MB+ (Chromium overhead)
- Better Performance: Native widgets vs web rendering
- Lower Memory: ~50MB vs ~200MB+ RAM usage
- Faster Startup: <1s vs 2-3s
- Native Feel: OS-native controls and behaviors
WindowsService.killProcess('spotify');
WindowsService.isProcessRunning('chrome');
WindowsService.getRunningProcesses();WindowsService.updateBrowserBlocklist(true, [
'chrome://extensions',
'edge://extensions',
]);WindowsService.lockWorkstation();
WindowsService.shutdown();
WindowsService.restart();- Admin Rights Required: For registry modifications and some process operations
- Windows Only: Currently targets Windows 10/11 (can be extended)
- No UWP/Store Apps: Can only manage Win32 executables
- Manual Refresh: App list doesn't auto-update (requires manual scan)
Most features work without admin except:
- Browser URL blocking (registry)
- Some protected process termination
- System-wide hooks
# Run with verbose logging
flutter run -d windows -v
# Check for Windows-specific issues
flutter doctor -v# Debug build (faster, includes DevTools)
flutter build windows
# Release build (optimized, smaller)
flutter build windows --release
# Executable location:
# build/windows/runner/Release/amnshield_flutter.exe- Install dependencies:
flutter pub get - Generate Hive adapters:
flutter pub run build_runner build - Run the app:
flutter run -d windows - Implement remaining tabs: Apps, Browser, Security
- Add system tray integration
- Test all features thoroughly
Same as original AmnShield projects.
- AmnShield Extension: Browser extension (Chrome/Firefox)
- Original C# App:
AmnShield-Desktop-App - Original Electron Manager:
AmnShield-Desktop-Manager
Built with β€οΈ using Flutter