Home-screen widget 1x1: unread DMs, unread channels, companion battery
build / build (push) Successful in 16m14s

A terminal-style Android widget (UnreadWidget.kt):

    dm 3
    ch 12
    bt 87%

Counts turn green when non-zero, the battery red at 20 % and grey when
the companion is disconnected (last known level kept). Tapping opens the
app. HomeWidgetBridge pushes the values over a method channel only when
they change; they are kept in SharedPreferences so the widget survives
the app being closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-10-22 22:53:07 +02:00
1 parent b47afe7854
commit 36806e289d
8 files changed
+235

No files matched your search

+2
View File
@@ -23,6 +23,7 @@ import 'services/storage_service.dart';
import 'services/message_retry_service.dart';
import 'services/path_history_service.dart';
import 'services/app_settings_service.dart';
import 'services/home_widget_bridge.dart';
import 'services/network_map/network_map_upload_service.dart';
import 'services/notification_service.dart';
import 'services/ble_debug_log_service.dart';
@@ -64,6 +65,7 @@ void main() async {
// Initialize services
final storage = StorageService();
final connector = MeshCoreConnector();
HomeWidgetBridge(connector).start(); // tth fork: home-screen widget
final pathHistoryService = PathHistoryService(storage);
final retryService = MessageRetryService();
final appSettingsService = AppSettingsService();