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
Problem
The Flutter analyzer reports
deprecated_member_usewarnings across multipleListView.builderinstances. We are currently using thecacheExtentproperty. Since Flutter v3.41+, this has been deprecated in favor ofscrollCacheExtent.Proposed Solution
Rename all instances of
cacheExtenttoscrollCacheExtentinListViewandGridViewwidgets.Trade-offs
Impact
lib/features/mongodb/mongo_collections_view.dartlib/features/mongodb/mongo_documents_view.dartlib/features/postgresql/postgres_browser_views.dartlib/features/redis/redis_keys_view.dart