fix: resolve analyzer warnings

- Fix empty catch block in track_provider.dart with comment
- Replace deprecated withOpacity() with withValues(alpha:) in library_settings_page.dart
This commit is contained in:
zarzet committed 2026-02-03 23:15:32 +07:00
1 parent 99e0d3d361
commit 3eb2fdd7fa
2 files changed
+7 -6

No files matched your search

+2 -1
View File
@@ -556,7 +556,8 @@ class TrackNotifier extends Notifier<TrackState> {
final tracks = List<Track>.from(state.tracks);
tracks[index] = updatedTrack;
state = state.copyWith(tracks: tracks);
} catch (e) {
} catch (_) {
// Silently ignore update failures - track may have been removed
}
}