How dev07060/macos_file_manager works
Project type and purpose
• This is a desktop application: a macOS file manager built with Flutter.
• It provides an interactive UI for browsing, manipulating, and previewing files/folders on the user’s machine, with features like drag-and-drop, image preview/editing, search, favorites, and shell-script execution.
File structure
• Top-level folders:
• lib/ – the entire Flutter/Dart codebase
– constants/ – static values (paths, file types, UI constants)
– model/ – data classes (DirectoryNodeData, FileSystemItem, FavoriteDirectory)
– providers/ – Riverpod providers and generated code for state management
– services/ – file system and directory services, selection logic
– src/ – UI events, states, widgets
· widgets/ – all reusable UI components (tree view, file details, toolbar, image preview, etc.)
· drag_drop_items_event.dart, home.dart, etc. – event/state handling for core pages
• macos/ – the native macOS host project, Swift/Objective-C glue, Xcode project files
• test/ – widget tests
• pubspec.yaml – dependencies including flutter_riverpod, extended_image, archive
README for additional insights
• Confirms a clean architecture inspired structure: UI ←→ providers (state) ←→ services (business logic) ←→ OS file system.
• Notes key tech: Flutter, Riverpod, hooks_riverpod, super_drag_and_drop, archive, extended_image, intl, uuid, path.