Fix exception when showing the shared album info dialog

This commit is contained in:
Ming Ming 2023-09-11 00:27:25 +08:00
parent dc4cf7d5bd
commit 1404717574

View file

@ -136,7 +136,9 @@ class _WrappedCollectionBrowserState extends State<_WrappedCollectionBrowser>
if (_bloc.state.collection.shares.isNotEmpty &&
_bloc.state.collection.contentProvider is CollectionAlbumProvider) {
_showSharedAlbumInfoDialog();
WidgetsBinding.instance.addPostFrameCallback((_) {
_showSharedAlbumInfoDialog();
});
}
}