style: apply dart formatting fixes across lib/ and test/
CI / Lint (pull_request) Successful in 19m19s
CI / Test (pull_request) Failing after 19m19s
CI / Build Android (pull_request) Skipped
CI / Build iOS (pull_request) Skipped

11 files had formatting inconsistencies that caused the
--set-exit-if-changed gate to fail. Automated formatting
via dart format now passes cleanly.
This commit is contained in:
robot
2026-08-01 11:06:17 +00:00
parent 0e131e1db2
commit 0257937859
11 changed files with 123 additions and 90 deletions
+25 -18
View File
@@ -35,21 +35,25 @@ class StreamingAudioBusinessObject extends ChangeNotifier {
return;
}
_audioHandlerInitFuture ??= AudioService.init(
builder: () => KryzAudioHandler(),
config: const AudioServiceConfig(
androidNotificationChannelId: 'com.kryzgoflutter.audio.channel',
androidNotificationChannelName: '${AppConfig.appName} Audio Playback',
androidNotificationOngoing: true,
androidStopForegroundOnPause: true,
),
).then((handler) {
_audioHandler = handler;
return handler;
}).catchError((error) {
_audioHandlerInitFuture = null;
throw error;
});
_audioHandlerInitFuture ??=
AudioService.init(
builder: () => KryzAudioHandler(),
config: const AudioServiceConfig(
androidNotificationChannelId: 'com.kryzgoflutter.audio.channel',
androidNotificationChannelName:
'${AppConfig.appName} Audio Playback',
androidNotificationOngoing: true,
androidStopForegroundOnPause: true,
),
)
.then((handler) {
_audioHandler = handler;
return handler;
})
.catchError((error) {
_audioHandlerInitFuture = null;
throw error;
});
await _audioHandlerInitFuture;
}
@@ -146,9 +150,12 @@ class StreamingAudioBusinessObject extends ChangeNotifier {
return;
}
final title = item.title.trim().isEmpty ? AppConfig.defaultTitle : item.title;
final subtitle =
(item.artist ?? '').trim().isEmpty ? AppConfig.defaultArtist : item.artist!.trim();
final title = item.title.trim().isEmpty
? AppConfig.defaultTitle
: item.title;
final subtitle = (item.artist ?? '').trim().isEmpty
? AppConfig.defaultArtist
: item.artist!.trim();
if (title == _currentTitle && subtitle == _currentSubtitle) {
return;