Skip to content

Add Card widget with disposal management for ListView optimization #2056

@M-Taha-Dev

Description

@M-Taha-Dev

Problem

Complex compound widgets in ListView (nested Row/Column with Avatar, Images, Buttons) don't dispose properly when scrolled out, causing memory leaks and performance issues.

Solution

Create a Card widget that wraps compound widgets and ensures comprehensive resource cleanup when ListView items are disposed.

Usage

ListView:
  children:
    - Card:  # Disposal wrapper
        children:
          - Row:
              children:
                - Avatar: { ... }
                - Image: { ... }
                - Button: { ... }

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions