Skip to content

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

Merged
TheNoumanDev merged 2 commits intomainfrom
image-cache
Apr 5, 2026
Merged

feat: Add configurable image cache settings via theme.yaml#2182
TheNoumanDev merged 2 commits 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

@TheNoumanDev TheNoumanDev merged commit 3015e9b into main Apr 5, 2026
5 checks passed
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.

2 participants