Skip to content

Repeated loading when using CachedNetworkImage #3344

@carlos-suen

Description

@carlos-suen

Describe the bug
Hello, Jonataslaw. Now I have two pages here, one is page1 and the other is page2. When I use Getx framework as routing management and Dio requests for http, I found that when I return to page1 from page2, it was reloading cachedNetworkImage. Why is this?

**Reproduction code
Here are my code:
page1.dart:

Image

Image

Image

Image

page1_controller.dart:

Image

Image

Image

page2.dart:
It just a empty page without any contents.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
I just don't want that Image reload again and again, it's killing me.

Screenshots

Image

Image

Flutter Version:
3.27.1

Getx Version:
[Enter the version of the Getx you are using](get: ^4.7.2)

Describe on which device you found the bug:
MI 9 emulator

Minimal reproduce code
Provide a minimum reproduction code for the problem

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions