|
@@ -352,7 +352,7 @@ class _LazyLoadingGridViewState extends State<LazyLoadingGridView> {
|
|
|
|
|
|
Widget _getRecyclableView() {
|
|
Widget _getRecyclableView() {
|
|
return VisibilityDetector(
|
|
return VisibilityDetector(
|
|
- key: Key(widget.filesInDay.first.tag),
|
|
|
|
|
|
+ key: Key("gallery" + widget.filesInDay.first.tag),
|
|
onVisibilityChanged: (visibility) {
|
|
onVisibilityChanged: (visibility) {
|
|
final shouldRender = visibility.visibleFraction > 0;
|
|
final shouldRender = visibility.visibleFraction > 0;
|
|
if (mounted && shouldRender != _shouldRender) {
|
|
if (mounted && shouldRender != _shouldRender) {
|
|
@@ -370,7 +370,7 @@ class _LazyLoadingGridViewState extends State<LazyLoadingGridView> {
|
|
Widget _getNonRecyclableView() {
|
|
Widget _getNonRecyclableView() {
|
|
if (!_shouldRender!) {
|
|
if (!_shouldRender!) {
|
|
return VisibilityDetector(
|
|
return VisibilityDetector(
|
|
- key: Key(widget.filesInDay.first.tag),
|
|
|
|
|
|
+ key: Key("gallery" + widget.filesInDay.first.tag),
|
|
onVisibilityChanged: (visibility) {
|
|
onVisibilityChanged: (visibility) {
|
|
if (mounted && visibility.visibleFraction > 0 && !_shouldRender!) {
|
|
if (mounted && visibility.visibleFraction > 0 && !_shouldRender!) {
|
|
setState(() {
|
|
setState(() {
|