How zerabyte88/phantek-gallery works
Phantek Gallery is an offline Android photo and video gallery built with Flutter, with native Android support for media operations. Its user-facing capabilities span browsing and organizing media, viewing and playing it, managing favorites and trash, adjusting settings, and checking for updates. The README documents these capabilities, but the supplied source excerpts cover only part of the native activity; most Flutter call relationships and the update implementation cannot be verified here, so those connections are omitted or marked unverified.
Main entry points: gallery_screen.dart Gallery timeline · video_player_screen.dart Video player · trash_screen.dart Trash viewer · settings_screen.dart Settings screen
Components 24
Media browsing
- Gallery timeline
lib/features/gallery/presentation/gallery_screen.dart - Album detail
lib/features/gallery/presentation/album_detail_screen.dart - Filter and sort
lib/features/gallery/presentation/widgets/filter_sort_bar.dart - Media index
lib/core/providers/media_provider.dart - Media scanner
lib/core/services/media_scanner_service.dart - Media models
lib/core/models/media_item.dart
Media viewing
- Image viewer
lib/features/player/presentation/image_viewer_screen.dart - Video player
lib/features/player/presentation/video_player_screen.dart - Media details
lib/features/player/presentation/widgets/media_info_sheet.dart - Thumbnail service
lib/core/services/thumbnail_service.dart
Media management
- Trash viewer
lib/features/trash/presentation/trash_screen.dart - Trash operations
lib/core/services/trash_service.dart - Trash state
lib/core/providers/trash_provider.dart
App experience
- App navigation
lib/app/router.dart - Settings screen
lib/features/settings/presentation/settings_screen.dart - Settings state
lib/core/providers/settings_provider.dart - Settings storage
lib/core/services/settings_service.dart - Themes and language
lib/app/theme.dart - Release updater
lib/features/update/data/update_service.dart - Update dialog
lib/features/update/presentation/update_dialog.dart
Platform services
- Android bridge
android/app/src/main/kotlin/com/phantek/virgo/spica/MainActivity.kt - Android media APIs
- MPV playback
Other components
- Gallery user
Connections 24
- Gallery user → App navigation: opens app
- App navigation → Gallery timeline: navigates to
- Gallery timeline → Album detail: opens albums
README.md - Gallery timeline → Filter and sort: filters and sorts
README.md - Gallery timeline → Media index: browses media
- Media scanner → Media index: indexes media
- Gallery timeline → Media models: shows media
- Gallery user → Image viewer: opens photos
README.md - Gallery user → Video player: plays videos
README.md - Image viewer → Media details: opens details
README.md - Video player → Media details: shows inspection
README.md - Gallery timeline → Thumbnail service: shows thumbnails
- Gallery user → Trash viewer: opens trash
README.md - Trash viewer → Trash operations: restores or deletes
README.md - Trash viewer → Trash state: updates trash
- Gallery user → Settings screen: configures app
- Settings screen → Settings state: edits settings
- Settings state → Settings storage: persists settings
- Settings screen → Themes and language: chooses themes
README.md - Gallery user → Update dialog: checks updates
README.md - Update dialog → Release updater: requests update
- Release updater → Android bridge: dispatches install
README.md - Android bridge → Android media APIs: extracts thumbnails
android/app/src/main/kotlin/com/phantek/virgo/spica/MainActivity.kt - Video player → MPV playback: plays through
README.md