Skip to content

Chore: Replace cacheExtent with scrollCacheExtent in ListViews #541

Description

@ZhuchkaTriplesix

Problem

The Flutter analyzer reports deprecated_member_use warnings across multiple ListView.builder instances. We are currently using the cacheExtent property. Since Flutter v3.41+, this has been deprecated in favor of scrollCacheExtent.

Proposed Solution

Rename all instances of cacheExtent to scrollCacheExtent in ListView and GridView widgets.

Trade-offs

  • Pros: Resolves linter warnings and keeps the codebase up-to-date with modern Flutter APIs. Ensures proper list virtualization behavior in future engine upgrades.
  • Cons: None. This is a direct API migration.

Impact

  • Risk: Zero.
  • Affected Files:
    • lib/features/mongodb/mongo_collections_view.dart
    • lib/features/mongodb/mongo_documents_view.dart
    • lib/features/postgresql/postgres_browser_views.dart
    • lib/features/redis/redis_keys_view.dart

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions