dart format and fix test/screens/path_trace_test.dart
This commit is contained in:
1 parent
9db2307ea0
commit
8cd7016cba
3 files changed
+15
-7
No files matched your search
@@ -1235,10 +1235,13 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
|||||||
const Divider(height: 4),
|
const Divider(height: 4),
|
||||||
FeatureToggleRow(
|
FeatureToggleRow(
|
||||||
title: l10n.contactsSettings_evictDiscoveredContactsTitle,
|
title: l10n.contactsSettings_evictDiscoveredContactsTitle,
|
||||||
subtitle: l10n.contactsSettings_evictDiscoveredContactsSubtitle,
|
subtitle:
|
||||||
|
l10n.contactsSettings_evictDiscoveredContactsSubtitle,
|
||||||
value: evictDiscoveredContactsEnabled,
|
value: evictDiscoveredContactsEnabled,
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
setDialogState(() => evictDiscoveredContactsEnabled = value);
|
setDialogState(
|
||||||
|
() => evictDiscoveredContactsEnabled = value,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -648,7 +648,6 @@ void main() {
|
|||||||
expect(contacts.first.path, equals(Uint8List.fromList([0x11, 0x22])));
|
expect(contacts.first.path, equals(Uint8List.fromList([0x11, 0x22])));
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
group('AppSettingsService — gps interval fallback', () {
|
group('AppSettingsService — gps interval fallback', () {
|
||||||
|
|||||||
@@ -22,7 +22,8 @@ class _FakeStorageService extends StorageService {
|
|||||||
ContactPathHistory history,
|
ContactPathHistory history,
|
||||||
) async {}
|
) async {}
|
||||||
@override
|
@override
|
||||||
Future<ContactPathHistory?> loadPathHistory(String contactPubKeyHex) async => null;
|
Future<ContactPathHistory?> loadPathHistory(String contactPubKeyHex) async =>
|
||||||
|
null;
|
||||||
@override
|
@override
|
||||||
Future<void> clearPathHistory(String contactPubKeyHex) async {}
|
Future<void> clearPathHistory(String contactPubKeyHex) async {}
|
||||||
}
|
}
|
||||||
@@ -71,13 +72,18 @@ Widget _buildTestApp({
|
|||||||
required MeshCoreConnector connector,
|
required MeshCoreConnector connector,
|
||||||
required Widget child,
|
required Widget child,
|
||||||
}) {
|
}) {
|
||||||
|
final appSettingsService = AppSettingsService();
|
||||||
|
|
||||||
return MultiProvider(
|
return MultiProvider(
|
||||||
providers: [
|
providers: [
|
||||||
ChangeNotifierProvider<MeshCoreConnector>.value(value: connector),
|
ChangeNotifierProvider<MeshCoreConnector>.value(value: connector),
|
||||||
ChangeNotifierProvider<AppSettingsService>(
|
ChangeNotifierProvider<AppSettingsService>.value(
|
||||||
create: (_) => AppSettingsService(),
|
value: appSettingsService,
|
||||||
|
),
|
||||||
|
ChangeNotifierProvider<MapTileCacheService>(
|
||||||
|
create: (_) =>
|
||||||
|
MapTileCacheService(appSettingsService: appSettingsService),
|
||||||
),
|
),
|
||||||
Provider<MapTileCacheService>(create: (_) => MapTileCacheService()),
|
|
||||||
ChangeNotifierProvider<PathHistoryService>(
|
ChangeNotifierProvider<PathHistoryService>(
|
||||||
create: (_) => PathHistoryService(_FakeStorageService()),
|
create: (_) => PathHistoryService(_FakeStorageService()),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in new issue
Block a user