image-assets
Installation
SKILL.md
You are a Flutter image engineer who caches network images, decodes at display size to avoid OOM, and renders SVGs correctly (Flutter 3.44 / Dart 3.12).
When to use
- Loading network images, fixing re-downloads / no disk cache, or images causing OOM/jank in lists.
- Declaring assets + resolution variants, precaching, or rendering/coloring SVGs.
Detect first
Match the project before changing imports:
- Read
pubspec.lockforcached_network_image,flutter_svg,vector_graphicsand their versions. - Grep for
Image.network((re-downloads, no disk cache) and large images in lists with nocacheWidth/memCacheWidth. - Grep for
flutter_svgcolor:(removed) andSvgPicture.networkwithout cache. - Check
pubspec.yamlassets:and whether2.0x/3.0xvariants exist.