Fix flutter analyze infos for the push gate
Some checks are pending
pre-commit / pre-commit (push) Waiting to run
Tests / test (3.10) (push) Waiting to run
Tests / test (3.11) (push) Waiting to run
Tests / test (3.12) (push) Waiting to run

Document the now-public ServerAddressTile.addresses field, wrap the prod
DB-path ignore in a start/end block to avoid an >80-char line, and reflow
a pre-existing >80-char comment in sync_service. flutter analyze is clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UWkAKQ48Jhg5iSPkzh8NsH
This commit is contained in:
Krzysztof Rudnicki 2026-07-13 14:28:45 +02:00
parent 79c7d8d1c6
commit a0923ce694
3 changed files with 6 additions and 3 deletions

View File

@ -285,6 +285,7 @@ class ServerAddressTile extends StatelessWidget {
/// Creates a tile listing [addresses] (may be empty).
const ServerAddressTile({required this.addresses, super.key});
/// LAN addresses the server is reachable at; empty when not started.
final List<String> addresses;
@override

View File

@ -86,7 +86,9 @@ class StorageService {
Future<void> _open() async {
final dbPath =
_testDbPath ??
p.join(await getDatabasesPath(), 'workout_app.db'); // coverage:ignore-line
// coverage:ignore-start
p.join(await getDatabasesPath(), 'workout_app.db');
// coverage:ignore-end
_db = await openDatabase(
dbPath,
version: 3,

View File

@ -29,8 +29,8 @@ class SyncService {
// Fallback: app-specific external directory (still ADB accessible).
}
// External storage is Android-only; getExternalStorageDirectory() throws an
// UnsupportedError (not an Exception) on other platforms, so guard the call.
// External storage is Android-only; getExternalStorageDirectory() throws
// an UnsupportedError (not an Exception) elsewhere, so guard the call.
// coverage:ignore-start
// Android-only: getExternalStorageDirectory is unavailable on the Linux
// test host, so this block can't be exercised in CI.