Commit b1e7853
authored
feat: integrate more lint rules and missing dispose calls (#1174)
* chore: enable additional lint rules and update dependencies
Enable new lint rules including no_equal_then_else, no_equal_conditions,
avoid_contradictory_expressions, and resource cleanup rules. Update
awesome_lints dependency to use local path reference.
* fix: add missing dispose calls for proper resource cleanup
Add dispose() calls for controllers, notifiers, and other resources
across multiple components to prevent memory leaks. Also fix parameter
type in table_node.dart and collection equality check in scroll service.
* refactor: remove deprecated document and node classes
Delete deprecated DocumentV0 and NodeV0 classes and remove the
deprecated Document.empty() factory method in favor of Document.blank().
* fix: remove deprecated exports and duplicate lint ignores
Remove exports for deleted deprecated document and node files from
core.dart and remove duplicate dispose_fields ignore comments.
* chore: point awesome_lints to git main branch
Change awesome_lints dependency from local path to git repository
reference pointing to main branch.
* fix: remove duplicate dispose calls in find replace widget
Remove duplicate findTextEditingController.dispose() call and remove
searchService.dispose() from FindMenu since it doesn't own the service.
The searchService is owned and disposed by the parent widget.
* fix: correct overlay entry disposal in toolbar widgets
Remove overlay entries from overlay before disposing. OverlayEntry must
be removed with remove() before dispose() is called. Move cleanup logic
to proper order in dispose methods.
* refactor: inline overlay cleanup logic in toolbar dispose methods
Replace helper method calls with inline cleanup logic to make the
overlay entry disposal order explicit (remove, dispose, set to null).1 parent f882d95 commit b1e7853
File tree
21 files changed
+98
-507
lines changed- lib/src
- core
- document
- deprecated
- editor
- block_component
- base_component/selection
- image_block_component
- table_block_component
- editor_component/service
- selection
- toolbar
- desktop
- items
- color
- link
- mobile
- mobile_floating_toolbar
- flutter/scrollable_positioned_list/src
21 files changed
+98
-507
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | 2 | | |
5 | 3 | | |
6 | 4 | | |
| |||
This file was deleted.
0 commit comments