leak_sentinel 0.1.0
leak_sentinel: ^0.1.0 copied to clipboard
A custom_lint plugin that finds disposal-based memory leaks in Flutter — undisposed controllers, uncancelled subscriptions and timers — and fixes them with one click.
Changelog #
All notable changes to this project are documented here. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Unreleased #
0.1.0 - 2026-07-23 #
Initial release. A custom_lint plugin that detects disposal-based memory
leaks in Flutter State classes and offers one-click fixes.
Added #
missing_dispose— flags disposable controllers/notifiers (AnimationController,TextEditingController,ScrollController,TabController,PageController,FocusNode,ValueNotifier, and more) that are never disposed inState.dispose().uncancelled_subscription— flagsStreamSubscriptionfields that are never cancelled.uncancelled_timer— flagsTimerfields that are never cancelled.- One-click quick-fix for every rule: injects the correct release call
(
dispose()/cancel()) intodispose(), creating the method if absent. - Example project wired with
expect_lintassertions that double as the integration test.