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
2026-02-03 23:15:32 +07:00
parent 99e0d3d361
commit 3eb2fdd7fa
2 changed files with 7 additions and 6 deletions
+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
}
}