Skip to content

feat: Add configurable image cache settings via theme.yaml#2182

Open
TheNoumanDev wants to merge 1 commit intomainfrom
image-cache
Open

feat: Add configurable image cache settings via theme.yaml#2182
TheNoumanDev wants to merge 1 commit intomainfrom
image-cache

Conversation

@TheNoumanDev
Copy link
Copy Markdown
Member

Summary:

  • Image caching is global - flutter_cache_manager uses a single shared cache for all images. Setting it per-widget would be misleading since the last value set would apply to all images anyway.

  • App-level setting - Cache duration and size are app-wide decisions, not per-image decisions. Similar to how App.useSplashScreen or App.textScale work.

Example:

App:
  imageCache:
    stalePeriodMinutes: 10080  # default: 15
    maxObjects: 500            # default: 50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant