'Update new image when take new photos in flutter with photo_manager

I have a project in school where I create an app gallery with flutter. I use the photo_manager package and it works. But right now I want when I take a new picture and then I go back to the gallery app from sleep it updates new images but I don't know how. I look at the code example on this the _loadMoreAsset should update new images but it doesn't when i trigger.Some one can help me this case,thanks you so much.(english not my first langue) Also this is my code. So many thanks. This is _loadMoreAsset function

P/S: this is the video my project for now

Future<void> _loadMoreAsset() async {
await Future.delayed(const Duration(milliseconds: 200));
_hasMoreToLoad = true;
final List<AssetEntity> entities =
    await _path!.getAssetListPaged(page: _page + 1, size: _sizePerPage);
if (!mounted) {
  return;
}
setState(() {
  _entities!.addAll(entities);
  _page++;
  _hasMoreToLoad = _entities!.length < _totalEntitiesCount;
  _isLoadingMore = false;
});


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source