flutter_key_lints 1.0.1 copy "flutter_key_lints: ^1.0.1" to clipboard
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_impact rule 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 parameters
  • list_item_key: Specialized lint rule for list/grid item keys
  • appropriate_key_type: Lint rule to enforce proper key type usage
  • animation_key: Lint rule to ensure animated widgets have keys
  • performance_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
1
likes
60
points
48
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter custom lint package to enforce proper widget key usage for improved performance, state management, and widget tree reconciliation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, custom_lint_builder, custom_lint_core, flutter

More

Packages that depend on flutter_key_lints