File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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, {
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ homepage: https://github.com/SimformSolutionsPvtLtd/audio_waveforms
55issue_tracker : https://github.com/SimformSolutionsPvtLtd/audio_waveforms/issues
66
77environment :
8- sdk : " >=2.12.0 <3 .0.0"
8+ sdk : " >=2.12.0 <4 .0.0"
99 flutter : " >=1.20.0"
1010
1111dependencies :
@@ -15,7 +15,7 @@ dependencies:
1515dev_dependencies :
1616 flutter_test :
1717 sdk : flutter
18- flutter_lints : ^2 .0.1
18+ lints : ^3 .0.0
1919
2020flutter :
2121 plugin :
You can’t perform that action at this time.
0 commit comments