How kangmeaselectricity-stack/flutter_application works
This repository contains a Flutter power-meter and utility-data application, plus a separate Windows synchronization automation script. The apparent user workflow is to open the app, capture or enter meter readings, review power and battery information, then back up or synchronize data. Screen and service names indicate additional camera/OCR, location, voice, BLE, and cloud-storage capabilities. Dart sources were not excerpted and the README documents no behavior, so app-level relationships below are dashed and unverified; native runner edges are supported by the sampled entrypoints.
Main entry points: home_screen.dart Home screen · power_data_screen.dart Power data · sync_service.dart Sync service · google_lens_screen.dart Google Lens
Components 27
Flutter application
- App entry
lib/main.dart - Home screen
lib/screens/home_screen.dart - Power data
lib/screens/power_data_screen.dart - Battery analysis
lib/screens/battery_analysis_screen.dart - Backup sync
lib/screens/backup_sync_screen.dart - Google Lens
lib/screens/google_lens_screen.dart - App navigation
lib/widgets/app_drawer.dart - Customer card
lib/widgets/customer_card.dart - Area filter
lib/widgets/filter_area.dart
Data and integrations
- Local database
lib/database_service.dart - Meter BLE
lib/services/meter_ble_service.dart - OCR service
lib/services/ocr_service.dart - Camera service
lib/services/camera_service.dart - Location service
lib/services/location_service.dart - Voice service
lib/services/voice_service.dart - Watermark service
lib/services/watermark_service.dart - Sync service
lib/services/sync_service.dart - Google Drive
lib/services/google_drive_service.dart - WebDAV service
lib/services/webdav_service.dart - VPN helper
lib/services/vpn_helper_service.dart
Desktop automation
- Sync automation
automation/epower_auto_sync.py - Automation log
auto_input_log.db
Other components
- User
- Windows runner
windows/runner/main.cpp - Flutter window
windows/runner/flutter_window.h - Linux runner
linux/runner/main.cc - Linux application
linux/runner/my_application.h
Connections 21
- User → App entry: opens app
- App entry → Home screen: shows
- Home screen → Power data: opens
- Home screen → Battery analysis: opens
- Home screen → Backup sync: opens
- Home screen → Google Lens: opens
- Power data → Local database: reads or writes
- Power data → Meter BLE: reads meter
- Battery analysis → Local database: reads data
- Google Lens → Camera service: captures image
- Google Lens → OCR service: extracts text
- Backup sync → Sync service: starts sync
- Sync service → Google Drive: backs up
- Sync service → WebDAV service: syncs remotely
- Home screen → Location service: uses location
- Home screen → Voice service: uses voice
- Power data → Watermark service: watermarks output
- Sync service → VPN helper: uses helper
- Sync automation → Automation log: uses log
- Windows runner → Flutter window: creates window
windows/runner/main.cpp - Linux runner → Linux application: runs application
linux/runner/main.cc