Browse Source

svga优化

master
ZHR007 2 months ago
parent
commit
febb97eda9
2 changed files with 1 additions and 1 deletions
  1. 1
      lib/controller/discover/svga_player_manager.dart
  2. 1
      lib/widget/live/svga_player_widget.dart

1
lib/controller/discover/svga_player_manager.dart

@ -78,7 +78,6 @@ class SvgaPlayerManager extends GetxController {
void clearQueue() { void clearQueue() {
stop(); stop();
_animationQueue.clear(); _animationQueue.clear();
Get.log('clearQueue>>>81');
} }
/// ///

1
lib/widget/live/svga_player_widget.dart

@ -44,6 +44,7 @@ class _SvgaPlayerWidgetState extends State<SvgaPlayerWidget>
@override @override
void dispose() { void dispose() {
_controller?.dispose(); _controller?.dispose();
_manager.clearQueue();
super.dispose(); super.dispose();
} }

Loading…
Cancel
Save