fullscreen: fixed video init when deleting previous entry

This commit is contained in:
Thibault Deckers 2020-03-18 12:22:20 +09:00
parent 1400ff7ecc
commit 298817d888

View file

@ -112,11 +112,11 @@ class FullscreenBodyState extends State<FullscreenBody> with SingleTickerProvide
}
void _registerWidget(FullscreenBody widget) {
widget.collection.addListener(_onCollectionChange);
widget.collection?.addListener(_onCollectionChange);
}
void _unregisterWidget(FullscreenBody widget) {
widget.collection.removeListener(_onCollectionChange);
widget.collection?.removeListener(_onCollectionChange);
}
@override