Skip to content
Back to skills

Flutter Performance

ASecurity

The memory spike is most likely from decoding and caching too many full-resolution catalog images at once. Recommended fixes: - Resize images at load time instead of keeping original dimensions in memory. Set `memCacheWidth` / `memCacheHeight` or `maxWidth` / `maxHeight` based on the rendered card size. - Use `CachedNetworkImage` so repeated scrolling does not redownload assets, but keep cache dimensions constrained. - Render catalog items with `ListView.builder` so off-screen items are recyc...

  • 584 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
development

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill flutter-performance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Flutter Performance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Flutter Performance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-flutter-performance-2ae86c4f/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-flutter-performance-2ae86c4f)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
The memory spike is most likely from decoding and caching too many full-resolution catalog images at once.

Recommended fixes:

- Resize images at load time instead of keeping original dimensions in memory. Set `memCacheWidth` / `memCacheHeight` or `maxWidth` / `maxHeight` based on the rendered card size.
- Use `CachedNetworkImage` so repeated scrolling does not redownload assets, but keep cache dimensions constrained.
- Render catalog items with `ListView.builder` so off-screen items are recycled instead of all staying alive.
- Paginate the catalog, ideally around 20 items per page, rather than loading the entire image-heavy dataset at once.
- Avoid heavy image-related work in `build()` and keep item widgets as `const` where possible to reduce rebuild pressure.
- If thumbnails are still expensive, generate smaller server-side variants and load those in the list instead of full-res originals.

Example:

```dart
CachedNetworkImage(
  imageUrl: product.thumbnailUrl,
  memCacheWidth: 300,
  maxWidthDiskCache: 300,
  fit: BoxFit.cover,
)
```

If the issue persists after resizing, profile image cache usage first—the bottleneck is usually oversized decoded bitmaps, not the widget tree itself.

Files in this skill

  • eval-1.baseline.md472 B
  • eval-1.with-skill.md795 B
  • eval-2.baseline.md924 B
  • eval-2.with-skill.md1.5 KB
  • eval-3.baseline.md1 KB
  • eval-3.with-skill.md1.2 KB
  • trigger-1.md184 B
  • trigger-2.md211 B
  • trigger-3.md206 B
  • trigger-4.md232 B
  • trigger-5.md189 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.