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),
|
||||
FeatureToggleRow(
|
||||
title: l10n.contactsSettings_evictDiscoveredContactsTitle,
|
||||
subtitle: l10n.contactsSettings_evictDiscoveredContactsSubtitle,
|
||||
subtitle:
|
||||
l10n.contactsSettings_evictDiscoveredContactsSubtitle,
|
||||
value: evictDiscoveredContactsEnabled,
|
||||
onChanged: (value) {
|
||||
setDialogState(() => evictDiscoveredContactsEnabled = value);
|
||||
setDialogState(
|
||||
() => evictDiscoveredContactsEnabled = value,
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
|
||||
@@ -648,7 +648,6 @@ void main() {
|
||||
expect(contacts.first.path, equals(Uint8List.fromList([0x11, 0x22])));
|
||||
},
|
||||
);
|
||||
|
||||
});
|
||||
|
||||
group('AppSettingsService — gps interval fallback', () {
|
||||
|
||||
@@ -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()),
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user