How bottle-note/bottle-note-app works
This repository is the Bottle Note official Flutter app. The likely user path is entering the app, viewing its web content, and using bridge-backed device or social features; the tree also shows connectivity/offline handling and Firebase configuration. The available source excerpts are native platform files rather than Dart runtime code, so most Flutter relationships below are shown as unverified dashed links, not asserted call paths.
Main entry points: main.dart Flutter entry · web_view_bridge_handler.dart Web bridge · web_view.dart Web view · auth_bridge_handler.dart Auth bridge
Components 23
App experience
- Flutter entry
lib/main.dart - Offline screen
lib/ui/offline_screen.dart - Loading UI
lib/ui/loading_widget.dart - Branding
lib/ui/bottle_note_logo_path.dart - Back action
lib/actions/back_action_handler.dart
Web integration
- Web view
lib/web_view/web_view.dart - Bridge setup
lib/bridge/bridge_setup_script.dart - Web bridge
lib/bridge/web_view_bridge_handler.dart - Web navigation
lib/bridge/web_view_navigation_handler.dart - Bridge base
lib/bridge/handlers/bridge_handler_base.dart - Auth bridge
lib/bridge/handlers/auth_bridge_handler.dart - Device bridge
lib/bridge/handlers/device_bridge_handler.dart - Media bridge
lib/bridge/handlers/media_bridge_handler.dart - Share bridge
lib/bridge/handlers/share_bridge_handler.dart - Social login
lib/bridge/social_login_handler.dart
Platform services
- Connectivity
lib/utils/network/connectivity_service.dart - URL restore
lib/utils/url_restore_manager.dart - Firebase config
lib/permissions/FirebaseConfig.dart - Firebase options
lib/firebase_options.dart - Environment config
lib/utils/env/env.dart - Android intent host
android/app/src/main/kotlin/com/bottlenote/official/app/MainActivity.kt - iOS host
ios/Runner/AppDelegate.swift
Other components
- App user
Connections 22
- App user → Flutter entry: opens
- Flutter entry → Web view: presents
- Web view → Bridge setup: sets up
- Web view → Web navigation: handles navigation
- Web view → Web bridge: dispatches
- Web bridge → Bridge base: uses handlers
- Web bridge → Auth bridge: dispatches
- Web bridge → Device bridge: dispatches
- Web bridge → Media bridge: dispatches
- Web bridge → Share bridge: dispatches
- Auth bridge → Social login: supports login
- Flutter entry → Back action: handles back
- Flutter entry → Connectivity: checks status
- Flutter entry → Offline screen: shows offline
- Web view → URL restore: restores URL
- Flutter entry → Loading UI: shows loading
- Flutter entry → Branding: uses branding
- Flutter entry → Firebase config: configures
- Firebase config → Firebase options: uses options
- Flutter entry → Environment config: reads settings
- Android intent host → App user: handles app intents
- iOS host → Flutter entry: hosts Flutter