dart format and fix test/screens/path_trace_test.dart

This commit is contained in:
ericz committed 2026-08-04 17:31:06 +02:00
1 parent 9db2307ea0
commit 8cd7016cba
3 files changed
+15 -7

No files matched your search

+5 -2
View File
@@ -1235,10 +1235,13 @@ class _SettingsScreenState extends State<SettingsScreen> {
const Divider(height: 4),
FeatureToggleRow(
title: l10n.contactsSettings_evictDiscoveredContactsTitle,
subtitle: l10n.contactsSettings_evictDiscoveredContactsSubtitle,
subtitle:
l10n.contactsSettings_evictDiscoveredContactsSubtitle,
value: evictDiscoveredContactsEnabled,
onChanged: (value) {
setDialogState(() => evictDiscoveredContactsEnabled = value);
setDialogState(
() => evictDiscoveredContactsEnabled = value,
);
},
),
],
-1
View File
@@ -648,7 +648,6 @@ void main() {
expect(contacts.first.path, equals(Uint8List.fromList([0x11, 0x22])));
},
);
});
group('AppSettingsService — gps interval fallback', () {
+10 -4
View File
@@ -22,7 +22,8 @@ class _FakeStorageService extends StorageService {
ContactPathHistory history,
) async {}
@override
Future<ContactPathHistory?> loadPathHistory(String contactPubKeyHex) async => null;
Future<ContactPathHistory?> loadPathHistory(String contactPubKeyHex) async =>
null;
@override
Future<void> clearPathHistory(String contactPubKeyHex) async {}
}
@@ -71,13 +72,18 @@ Widget _buildTestApp({
required MeshCoreConnector connector,
required Widget child,
}) {
final appSettingsService = AppSettingsService();
return MultiProvider(
providers: [
ChangeNotifierProvider<MeshCoreConnector>.value(value: connector),
ChangeNotifierProvider<AppSettingsService>(
create: (_) => AppSettingsService(),
ChangeNotifierProvider<AppSettingsService>.value(
value: appSettingsService,
),
ChangeNotifierProvider<MapTileCacheService>(
create: (_) =>
MapTileCacheService(appSettingsService: appSettingsService),
),
Provider<MapTileCacheService>(create: (_) => MapTileCacheService()),
ChangeNotifierProvider<PathHistoryService>(
create: (_) => PathHistoryService(_FakeStorageService()),
),