flutter-listview-viewport-gotchas
CommunityDebug ListView viewport recycling patterns in Flutter.
AuthorImL1s
Version1.0.0
Installs0
System Documentation
What problem does it solve?
ListView, CustomScrollView, and GridView recycle off-screen widgets, causing disposed State and reinitialization after scrolling, which can lead to UI inconsistencies or missing updates.
Core Features & Use Cases
- Debug patterns for didUpdateWidget not called, ScrollController hasClients false, and widgets being disposed during viewport recycling.
- Guidance for preventing state loss when scrolling, including keep-alive strategies and safe scrolling to the selected item.
- Real-world debugging scenarios that show how to reproduce and fix common viewport recycling issues in Flutter apps.
Quick Start
Open a Flutter project and apply the viewport debugging patterns to diagnose and fix ListView/CustomScrollView recycling issues.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: flutter-listview-viewport-gotchas Download link: https://github.com/ImL1s/flutter-claude-skills/archive/main.zip#flutter-listview-viewport-gotchas Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.