LifeMate — Personal, Family & Learning Companion
style(flutter): satisfy reminder control lint rules
Quinn White committed
Oct 21, 2026 at 04:41 UTC
111b793b03a0342d130a1dd3c833ceea200d4ea9
2 files changed
+9
-5
apps/lifemate/lib/standalone/reminders.dart
+2
-1
@@ -328,8 +328,9 @@ final class StandaloneReminderPort {
328
329
/// Opens Android's controls only; it never grants consent or reschedules.
330
Future<void> openNotificationSettings() async {
331
- if (!_native)
331
+ if (!_native) {
332
throw UnsupportedError('Android notification settings unavailable.');
333
+ }
334
await _write('openNotificationSettings');
335
}
336
apps/lifemate/test/standalone_reminder_settings_test.dart
+7
-4
@@ -1,6 +1,5 @@
1
import 'dart:io';
2
3
-import 'package:flutter/foundation.dart';
3
import 'package:flutter/material.dart';
4
import 'package:flutter/services.dart';
5
import 'package:flutter_localizations/flutter_localizations.dart';
@@ -46,15 +45,17 @@ void main() {
45
if (call.method == 'openNotificationSettings' && failSettings) {
46
throw PlatformException(code: 'settings_unavailable');
47
}
49
- if (call.method == 'setEnabled')
48
+ if (call.method == 'setEnabled') {
49
enabled = (call.arguments as Map)['enabled'] == true;
50
+ }
51
if (call.method == 'activate') active = true;
52
if (call.method == 'deactivate') {
53
active = false;
54
scheduled = 0;
55
}
56
- if (call.method == 'replace')
56
+ if (call.method == 'replace') {
57
scheduled = ((call.arguments as Map)['reminders'] as List).length;
58
+ }
59
if (['status', 'requestPermission', 'requestExactAlarmAccess']
60
.contains(call.method)) {
61
return {
@@ -98,7 +99,9 @@ void main() {
99
await Future<void>.delayed(const Duration(milliseconds: 10));
100
await tester.pumpAndSettle();
101
if (find.byType(LinearProgressIndicator).evaluate().isEmpty &&
101
- coordinator.status != null) return;
102
+ coordinator.status != null) {
103
+ return;
104
+ }
105
}
106
fail('Reminder settings never finished reading actual SQLite.');
107
}