How l1xu4n/focubili works
FocuBili is a Flutter Android/Windows Bilibili client centered on deliberate video discovery and focused viewing. The main user journey is to search for or open a video link, inspect details, and play it; related branches support learning lists, timestamped notes, focus sessions, and account/profile data. The graph includes the Flutter feature areas and sampled native bridges. Flutter implementation details beyond the supplied excerpts are represented only where documented in the README; edges cite that documentation or the sampled source that shows the relationship.
Main entry points: player_page.dart Player page · MainActivity.kt Android bridge · bilibili_service.dart Bilibili services · search_page.dart Video search
Components 26
Application shell
- Flutter app entry
lib/main.dart - Navigation shell
lib/features/shell/main_shell.dart
Discovery and accounts
- Home
lib/features/home/home_page.dart - Video search
lib/features/search/search_page.dart - Link handling
lib/services/bilibili_deep_link_service.dart - Account and login
lib/features/profile/login_page.dart - Bilibili services
lib/services/bilibili_service.dart - Profile data
lib/features/profile/profile_page.dart
Playback experience
- Player page
lib/features/player/player_page.dart - Playback session
lib/features/player/player_playback_session.dart - Player enhancements
lib/features/player/enhancements/player_enhancement_controller.dart
Focus and learning
- Learning list
lib/features/learning/learning_list_page.dart - Video notes
lib/features/notes/video_note_composer.dart - Focus timer
lib/features/focus/focus_timer_controller.dart - Focus sessions
lib/services/focus_session_service.dart
Platform services
- Android playback
android/app/src/main/kotlin/com/focubili/app/NativePlaybackController.kt - Focus reminders
android/app/src/main/kotlin/com/focubili/app/FocusNotificationController.kt - Reminder scheduler
android/app/src/main/kotlin/com/focubili/app/FocusReminderScheduler.kt - Android bridge
android/app/src/main/kotlin/com/focubili/app/MainActivity.kt - Android deep links
android/app/src/main/kotlin/com/focubili/app/DeepLinkController.kt - Android cookies
android/app/src/main/kotlin/com/focubili/app/BilibiliCookieController.kt - Device status
android/app/src/main/kotlin/com/focubili/app/DeviceStatusController.kt - Windows runner
windows/runner/main.cpp - Flutter window
windows/runner/flutter_window.cpp
Other components
- Viewer
- Bilibili platform
Connections 31
- Viewer → Flutter app entry: opens
README.md - Flutter app entry → Navigation shell: starts
- Navigation shell → Home: shows
README.md - Home → Video search: opens search
README.md - Viewer → Video search: searches
README.md - Viewer → Link handling: opens link
README.md - Video search → Bilibili services: requests results
README.md - Link handling → Player page: opens video
README.md - Video search → Player page: opens result
- Player page → Bilibili services: loads details
README.md - Player page → Playback session: controls playback
- Playback session → Android playback: bridges playback
- Player page → Player enhancements: renders features
- Player page → Learning list: adds episode
README.md - Player page → Video notes: creates notes
README.md - Home → Learning list: continues learning
README.md - Viewer → Account and login: signs in
README.md - Account and login → Bilibili services: authenticates
README.md - Profile data → Bilibili services: loads account data
README.md - Viewer → Focus timer: starts session
README.md - Focus timer → Focus sessions: records session
- Focus timer → Focus reminders: schedules reminder
- Android bridge → Android playback: registers
android/app/src/main/kotlin/com/focubili/app/MainActivity.kt - Android bridge → Android cookies: registers
android/app/src/main/kotlin/com/focubili/app/MainActivity.kt - Android bridge → Device status: registers
android/app/src/main/kotlin/com/focubili/app/MainActivity.kt - Android bridge → Focus reminders: registers
android/app/src/main/kotlin/com/focubili/app/MainActivity.kt - Android bridge → Android deep links: registers
android/app/src/main/kotlin/com/focubili/app/MainActivity.kt - Focus reminders → Reminder scheduler: schedules alarms
android/app/src/main/kotlin/com/focubili/app/FocusNotificationController.kt - Android deep links → Flutter app entry: forwards links
android/app/src/main/kotlin/com/focubili/app/DeepLinkController.kt - Bilibili services → Bilibili platform: calls API
README.md - Windows runner → Flutter window: creates window
windows/runner/main.cpp