Skip to content

Commit a35d436

Browse files
fix: 🚨 Update linter and fixed pana warnings
Signed-off-by: Ujas-Majithiya <[email protected]>
1 parent 1f21a96 commit a35d436

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include: package:flutter_lints/flutter.yaml
1+
include: package:lints/core.yaml
22

33
# Additional information about this file can be found at
44
# https://dart.dev/guides/language/analysis-options

lib/src/base/audio_waveforms_interface.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class AudioWaveformsInterface {
156156
});
157157
return result ?? false;
158158
}
159-
159+
160160
///platform call to set rate
161161
Future<bool> setRate(double rate, String key) async {
162162
var result = await _methodChannel.invokeMethod(Constants.setRate, {

lib/src/controllers/player_controller.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ class PlayerController extends ChangeNotifier {
281281
void dispose() async {
282282
if (playerState != PlayerState.stopped) await stopPlayer();
283283
await release();
284-
PlatformStreams.instance.playerControllerFactory.remove(this);
284+
PlatformStreams.instance.playerControllerFactory.remove(playerKey);
285285
if (PlatformStreams.instance.playerControllerFactory.length == 1) {
286286
PlatformStreams.instance.dispose();
287287
}
@@ -296,7 +296,7 @@ class PlayerController extends ChangeNotifier {
296296
void stopAllPlayers() async {
297297
PlatformStreams.instance.dispose();
298298
await AudioWaveformsInterface.instance.stopAllPlayers();
299-
PlatformStreams.instance.playerControllerFactory.remove(this);
299+
PlatformStreams.instance.playerControllerFactory.clear();
300300
}
301301

302302
/// Sets [_shouldRefresh] flag with provided boolean parameter.

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ homepage: https://github.com/SimformSolutionsPvtLtd/audio_waveforms
55
issue_tracker: https://github.com/SimformSolutionsPvtLtd/audio_waveforms/issues
66

77
environment:
8-
sdk: ">=2.12.0 <3.0.0"
8+
sdk: ">=2.12.0 <4.0.0"
99
flutter: ">=1.20.0"
1010

1111
dependencies:
@@ -15,7 +15,7 @@ dependencies:
1515
dev_dependencies:
1616
flutter_test:
1717
sdk: flutter
18-
flutter_lints: ^2.0.1
18+
lints: ^3.0.0
1919

2020
flutter:
2121
plugin:

0 commit comments

Comments
 (0)