flutter_key_lints 1.0.1
flutter_key_lints: ^1.0.1 copied to clipboard
A Flutter custom lint package to enforce proper widget key usage for improved performance, state management, and widget tree reconciliation.
1.0.1 #
Bug Fixes: #
- Fixed overzealous
performance_impactrule that was triggering on widgets with proper keys - Improved widget key detection logic in parent-child relationships
- Fixed key parameter validation to properly handle custom key utilities
1.0.0 #
Initial release of the flutter_key_lints package.
Features: #
require_widget_key: Lint rule to detect widgets without key parameterslist_item_key: Specialized lint rule for list/grid item keysappropriate_key_type: Lint rule to enforce proper key type usageanimation_key: Lint rule to ensure animated widgets have keysperformance_impact: Lint rule that analyzes potential performance impact of missing keys- Configurable exempt widget list through analysis_options.yaml
- Comprehensive documentation and examples
- Unit tests for all lint rules
Implementation details: #
- Built with custom_lint 0.7.5
- Compatible with analyzer 7.3.0 and above
- Compatible with Flutter 3.0.0 and above
- Customizable rule configuration